]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
14 years agodon't call Mem_CheckSentinelsGlobal in image loaders (wastes time)
havoc [Fri, 13 Nov 2009 19:26:44 +0000 (19:26 +0000)]
don't call Mem_CheckSentinelsGlobal in image loaders (wastes time)
call Mem_CheckSentinelsGlobal every frame if developer_memorydebug cvar
is on (or MEMPARANOIA is on)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9482 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix two typos in last commit
havoc [Fri, 13 Nov 2009 18:46:34 +0000 (18:46 +0000)]
fix two typos in last commit

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9481 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoseparate handling of num_pvsclusterbytes in ViewCache code
havoc [Fri, 13 Nov 2009 18:45:54 +0000 (18:45 +0000)]
separate handling of num_pvsclusterbytes in ViewCache code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9480 d7cf8633-e32d-0410-b094-e92efae38249

14 years agobump a few limits in DP_SMALLMEMORY (cachedpics was too low for even
havoc [Fri, 13 Nov 2009 11:14:41 +0000 (11:14 +0000)]
bump a few limits in DP_SMALLMEMORY (cachedpics was too low for even
Quake...)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9479 d7cf8633-e32d-0410-b094-e92efae38249

14 years agomove R_Main_ResizeViewCache call to fix a crash
havoc [Thu, 12 Nov 2009 14:00:48 +0000 (14:00 +0000)]
move R_Main_ResizeViewCache call to fix a crash

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9478 d7cf8633-e32d-0410-b094-e92efae38249

14 years agono longer uses trace culling on csqc entities and other temp entities,
havoc [Thu, 12 Nov 2009 13:01:02 +0000 (13:01 +0000)]
no longer uses trace culling on csqc entities and other temp entities,
because they flicker too much

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9477 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoalways VIEWCACHEDYNAMIC
havoc [Thu, 12 Nov 2009 13:00:41 +0000 (13:00 +0000)]
always VIEWCACHEDYNAMIC

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9476 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoresize view cache each frame instead of at newmap
havoc [Thu, 12 Nov 2009 12:58:14 +0000 (12:58 +0000)]
resize view cache each frame instead of at newmap

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9475 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix crash with predicted player locations
havoc [Thu, 12 Nov 2009 12:44:23 +0000 (12:44 +0000)]
fix crash with predicted player locations

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9474 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix bug with VIEWCACHEDYNAMIC
havoc [Thu, 12 Nov 2009 10:44:33 +0000 (10:44 +0000)]
fix bug with VIEWCACHEDYNAMIC

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9473 d7cf8633-e32d-0410-b094-e92efae38249

14 years agodisable dynamic viewcache until bugs are fixed
havoc [Thu, 12 Nov 2009 10:36:34 +0000 (10:36 +0000)]
disable dynamic viewcache until bugs are fixed

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9472 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix crash if CVAR_HASHSIZE was set to a value below 65536
havoc [Thu, 12 Nov 2009 10:30:20 +0000 (10:30 +0000)]
fix crash if CVAR_HASHSIZE was set to a value below 65536

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9471 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoset the isaabb/hasaabbplanes fields on box brushes
havoc [Wed, 11 Nov 2009 22:55:40 +0000 (22:55 +0000)]
set the isaabb/hasaabbplanes fields on box brushes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9470 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoreduce gl_rmain size a bit
havoc [Wed, 11 Nov 2009 19:54:45 +0000 (19:54 +0000)]
reduce gl_rmain size a bit

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9469 d7cf8633-e32d-0410-b094-e92efae38249

14 years agorename R_MAX_OCCLUSION_QUERIES to MAX_OCCLUSION_QUERIES and move it to
havoc [Wed, 11 Nov 2009 16:40:26 +0000 (16:40 +0000)]
rename R_MAX_OCCLUSION_QUERIES to MAX_OCCLUSION_QUERIES and move it to
quakedef.h

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9468 d7cf8633-e32d-0410-b094-e92efae38249

14 years agomigrated a large number of #define MAX values to quakedef.h and added a
havoc [Wed, 11 Nov 2009 16:04:42 +0000 (16:04 +0000)]
migrated a large number of #define MAX values to quakedef.h and added a
#ifdef DP_SMALLMEMORY case which drops darkplaces-sdl from 42MB to 24MB
of reserved space (according to size command)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9467 d7cf8633-e32d-0410-b094-e92efae38249

14 years agomore work on the unfinished OBJ loading
havoc [Wed, 11 Nov 2009 14:09:34 +0000 (14:09 +0000)]
more work on the unfinished OBJ loading

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9466 d7cf8633-e32d-0410-b094-e92efae38249

14 years agosome optimizations to model decals
havoc [Wed, 11 Nov 2009 14:09:08 +0000 (14:09 +0000)]
some optimizations to model decals

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9465 d7cf8633-e32d-0410-b094-e92efae38249

14 years agobetter to use NET_MAXMESSAGE than 65536 for download buffering
havoc [Wed, 11 Nov 2009 14:08:41 +0000 (14:08 +0000)]
better to use NET_MAXMESSAGE than 65536 for download buffering

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9464 d7cf8633-e32d-0410-b094-e92efae38249

14 years agocomments
havoc [Wed, 11 Nov 2009 14:08:17 +0000 (14:08 +0000)]
comments

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9463 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoimproving MEMCLUMP handling
havoc [Wed, 11 Nov 2009 13:25:58 +0000 (13:25 +0000)]
improving MEMCLUMP handling

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9462 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix typo
divverent [Mon, 9 Nov 2009 08:34:31 +0000 (08:34 +0000)]
fix typo

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9461 d7cf8633-e32d-0410-b094-e92efae38249

14 years agocorrect a typo in the ogg cdtracks installation instructions
havoc [Sun, 8 Nov 2009 22:04:38 +0000 (22:04 +0000)]
correct a typo in the ogg cdtracks installation instructions

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9460 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoadded r_farclip_base and r_farclip_world cvars to control farclip
havoc [Sun, 8 Nov 2009 19:57:10 +0000 (19:57 +0000)]
added r_farclip_base and r_farclip_world cvars to control farclip
distance, also affects sky fogging, changed base from 4096 to 65536
added cl_decals_models cvar to decide whether to apply decals to non-bsp
models (requires cl_decals_newsystem 1)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9459 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix typo in #ifdef ODE_DYNAMIC
havoc [Sun, 8 Nov 2009 19:14:11 +0000 (19:14 +0000)]
fix typo in #ifdef ODE_DYNAMIC

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9458 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix bug with alt textures (pressed buttons in q1bsp)
havoc [Sun, 8 Nov 2009 18:45:59 +0000 (18:45 +0000)]
fix bug with alt textures (pressed buttons in q1bsp)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9457 d7cf8633-e32d-0410-b094-e92efae38249

14 years agologarithm
divverent [Sun, 8 Nov 2009 18:01:05 +0000 (18:01 +0000)]
logarithm

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9456 d7cf8633-e32d-0410-b094-e92efae38249

14 years agonew decal system (cl_decals_newsystem 1 to activate)
havoc [Sun, 8 Nov 2009 17:06:13 +0000 (17:06 +0000)]
new decal system (cl_decals_newsystem 1 to activate)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9455 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoclmovement: do not replay less than 0.5ms sized movement data (should prevent NaNs)
divverent [Sat, 7 Nov 2009 18:03:15 +0000 (18:03 +0000)]
clmovement: do not replay less than 0.5ms sized movement data (should prevent NaNs)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9454 d7cf8633-e32d-0410-b094-e92efae38249

14 years agomore error code fixing
divverent [Sat, 7 Nov 2009 13:09:06 +0000 (13:09 +0000)]
more error code fixing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9453 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix typo compile erorr
divverent [Sat, 7 Nov 2009 13:04:52 +0000 (13:04 +0000)]
fix typo compile erorr

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9452 d7cf8633-e32d-0410-b094-e92efae38249

14 years agomore stupid error code passing
divverent [Sat, 7 Nov 2009 13:01:47 +0000 (13:01 +0000)]
more stupid error code passing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9451 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoand fix a NULL pointer causing typo...
divverent [Sat, 7 Nov 2009 12:56:20 +0000 (12:56 +0000)]
and fix a NULL pointer causing typo...

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9450 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix gettagmatrix error handling
divverent [Sat, 7 Nov 2009 12:54:39 +0000 (12:54 +0000)]
fix gettagmatrix error handling

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9449 d7cf8633-e32d-0410-b094-e92efae38249

14 years agotry fixing gettaginfo in client with frameblend etc. stuff
divverent [Sat, 7 Nov 2009 12:47:29 +0000 (12:47 +0000)]
try fixing gettaginfo in client with frameblend etc. stuff

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9448 d7cf8633-e32d-0410-b094-e92efae38249

14 years agobetter default for fog
divverent [Sat, 7 Nov 2009 12:46:55 +0000 (12:46 +0000)]
better default for fog

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9447 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoprevent creation of a cvar named "", as that breaks cvar()
divverent [Sat, 7 Nov 2009 11:41:38 +0000 (11:41 +0000)]
prevent creation of a cvar named "", as that breaks cvar()

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9446 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoadd a comment to bind writing
divverent [Sat, 7 Nov 2009 11:39:04 +0000 (11:39 +0000)]
add a comment to bind writing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9445 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix config.cfg writing (properly escape cvar names and values) to fix seta exploits
divverent [Sat, 7 Nov 2009 11:37:56 +0000 (11:37 +0000)]
fix config.cfg writing (properly escape cvar names and values) to fix seta exploits

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9444 d7cf8633-e32d-0410-b094-e92efae38249

14 years agolaid groundwork for a new decal system
havoc [Sat, 7 Nov 2009 10:52:58 +0000 (10:52 +0000)]
laid groundwork for a new decal system
added color4f parameter to RSurf_ActiveCustomEntity

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9443 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoequalization: reduce min ambient, it was too high
divverent [Fri, 6 Nov 2009 18:55:36 +0000 (18:55 +0000)]
equalization: reduce min ambient, it was too high

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9442 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix a couple merging bugs
havoc [Fri, 6 Nov 2009 15:05:39 +0000 (15:05 +0000)]
fix a couple merging bugs

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9441 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoreenabled fake lightmap on water to fix r_glsl 0 rendering of water in
havoc [Fri, 6 Nov 2009 15:03:49 +0000 (15:03 +0000)]
reenabled fake lightmap on water to fix r_glsl 0 rendering of water in
q1bsp

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9440 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix two bugs introduced in r5828 (2005-11-25) that made monsters and
havoc [Fri, 6 Nov 2009 14:24:21 +0000 (14:24 +0000)]
fix two bugs introduced in r5828 (2005-11-25) that made monsters and
corpses slide off of groundentity
thanks to negke for reporting this bug and assisting in identifying it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9439 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoremove some dead code
havoc [Fri, 6 Nov 2009 13:22:20 +0000 (13:22 +0000)]
remove some dead code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9438 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoimplemented fog height setting, along with fade depth setting - global
havoc [Fri, 6 Nov 2009 13:08:39 +0000 (13:08 +0000)]
implemented fog height setting, along with fade depth setting - global
fog now has a ceiling and a gradient fade to prevent harsh artifacts at
the transition line
reworked sky rendering to accept fog by using the surface renderer
reworked sprite rendering to use the surface renderer
reworked corona rendering to use the surface renderer
reworked fogging a bit on nomodel entities
eliminated R_DrawSprite

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9437 d7cf8633-e32d-0410-b094-e92efae38249

14 years agomsurface_t pointer arrays are now const, as are the vertex arrays in
havoc [Fri, 6 Nov 2009 13:05:26 +0000 (13:05 +0000)]
msurface_t pointer arrays are now const, as are the vertex arrays in
rsurface

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9436 d7cf8633-e32d-0410-b094-e92efae38249

14 years agouse larger batches for shadowmaps
havoc [Fri, 6 Nov 2009 12:52:06 +0000 (12:52 +0000)]
use larger batches for shadowmaps

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9435 d7cf8633-e32d-0410-b094-e92efae38249

14 years agorenamed polygonelements, skyboxelements, skysphereelements, to add 3s
havoc [Fri, 6 Nov 2009 12:49:09 +0000 (12:49 +0000)]
renamed polygonelements, skyboxelements, skysphereelements, to add 3s
and 3i versions of each, since most processing functions need 3i

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9434 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoadded fogging info to rsurface state so model scaling applies to fog
havoc [Fri, 6 Nov 2009 12:33:31 +0000 (12:33 +0000)]
added fogging info to rsurface state so model scaling applies to fog
cleanup of EF_ bit checks in renderer - now only uses RENDER_ flags
eliminated reliance on rsurface.entity in most rendering code, now
mirrors the few important fields in rsurface state

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9433 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix compile error
havoc [Fri, 6 Nov 2009 12:30:54 +0000 (12:30 +0000)]
fix compile error

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9432 d7cf8633-e32d-0410-b094-e92efae38249

14 years agochanged sky rendering to occur after depthmask polygons, instead of before
havoc [Fri, 6 Nov 2009 11:49:32 +0000 (11:49 +0000)]
changed sky rendering to occur after depthmask polygons, instead of before

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9431 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoadded R_SkinFrame_LoadInternal8bit
havoc [Fri, 6 Nov 2009 11:42:21 +0000 (11:42 +0000)]
added R_SkinFrame_LoadInternal8bit

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9430 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoreworked R_SkinFrame_Purge handling to encapsulate all modules, not just
havoc [Fri, 6 Nov 2009 11:36:27 +0000 (11:36 +0000)]
reworked R_SkinFrame_Purge handling to encapsulate all modules, not just
the model system, this allows skinframes to be persistent across levels
without being associated with a model

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9429 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoallow non-standard sizes for quake sky textures (anything with two
havoc [Fri, 6 Nov 2009 11:16:10 +0000 (11:16 +0000)]
allow non-standard sizes for quake sky textures (anything with two
square images side by side will work, width must be 2x height)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9428 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoreworked Matrix4x4_TransformPositivePlane and
havoc [Fri, 6 Nov 2009 11:09:22 +0000 (11:09 +0000)]
reworked Matrix4x4_TransformPositivePlane and
Matrix4x4_TransformStandardPlane to preserve unit length normal

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9427 d7cf8633-e32d-0410-b094-e92efae38249

14 years agolight equalizing: minimum ambient level feature (prevents dark players in diffuselit...
divverent [Fri, 6 Nov 2009 08:14:12 +0000 (08:14 +0000)]
light equalizing: minimum ambient level feature (prevents dark players in diffuselit-only areas when seen from the dark side)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9426 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoentity light equalization as an alternative rendering of EF_FULLBRIGHT entities....
divverent [Fri, 6 Nov 2009 07:00:06 +0000 (07:00 +0000)]
entity light equalization as an alternative rendering of EF_FULLBRIGHT entities. Enable with r_equalize_entities_fullbright 1.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9425 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix coronas for "realtime darks"
divverent [Thu, 5 Nov 2009 21:56:35 +0000 (21:56 +0000)]
fix coronas for "realtime darks"
fix gl_flashblend

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9424 d7cf8633-e32d-0410-b094-e92efae38249

14 years agosupport for "realtime world/dynamic darks". Just for fun. Should impact nothing else...
divverent [Thu, 5 Nov 2009 21:33:03 +0000 (21:33 +0000)]
support for "realtime world/dynamic darks". Just for fun. Should impact nothing else, as it is just removing one check and adding a special case for negative light color values, which should be never happening in existing code.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9423 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoyou can go hunter2 my hunter2-ing hunter2 (comment joke, sorry, had to be)
divverent [Tue, 3 Nov 2009 21:14:10 +0000 (21:14 +0000)]
you can go hunter2 my hunter2-ing hunter2 (comment joke, sorry, had to be)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9422 d7cf8633-e32d-0410-b094-e92efae38249

14 years agohide private cvars from the output of cvar name and cvarlist commands to prevent...
divverent [Tue, 3 Nov 2009 21:12:19 +0000 (21:12 +0000)]
hide private cvars from the output of cvar name and cvarlist commands to prevent password sniffing by evil CSQC
tab completion still shows their value because that cannot be triggered by CSQC code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9421 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofirst test of multi-account rcon:
divverent [Tue, 3 Nov 2009 21:04:39 +0000 (21:04 +0000)]
first test of multi-account rcon:

rcon_password "account1:1234 account2:2345"

Any of the space separated passwords can be matched - the string before the :
in each 'password' is printed to the log. So if that is set, clients can send
commands both with rcon_password "account1:1234" as well as with rcon_password
"account2:2345".

Fully backwards compatible: if rcon_password contains no space, user name
printing is not performed to keep the logs clean.

Also supported for rcon_restricted of course.

NOTE: anyone with rcon_password can read the passwords of the others by simply
sending the command "rcon_password". Of course this will get logged, but makes
all other passwords pointless. Better use this system only for RESTRICTED rcon,
is what I am saying. And WATCH YOUR LOGS.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9420 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoreplace FogPoint_* functions with RSurf_FogVertex
havoc [Tue, 3 Nov 2009 05:29:39 +0000 (05:29 +0000)]
replace FogPoint_* functions with RSurf_FogVertex
rename rsurface.modelorg to rsurface.localvieworigin

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9419 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoremove prototypes for a couple functions that were removed
havoc [Tue, 3 Nov 2009 05:26:00 +0000 (05:26 +0000)]
remove prototypes for a couple functions that were removed

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9418 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoimplemented a new preallocated "boxbrush" type for use with
havoc [Tue, 3 Nov 2009 04:58:15 +0000 (04:58 +0000)]
implemented a new preallocated "boxbrush" type for use with
Collision_BrushForBox rather than reusing a cyclic array

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9417 d7cf8633-e32d-0410-b094-e92efae38249

14 years agooptimized AABB collision case for q3bsp, 14.5% faster than r9398
havoc [Tue, 3 Nov 2009 04:20:42 +0000 (04:20 +0000)]
optimized AABB collision case for q3bsp, 14.5% faster than r9398

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9416 d7cf8633-e32d-0410-b094-e92efae38249

14 years agooptimized edgedir handling to use half as many, which reduces it from
havoc [Mon, 2 Nov 2009 22:48:27 +0000 (22:48 +0000)]
optimized edgedir handling to use half as many, which reduces it from
84 tests per trace for box vs box, to 30

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9415 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix USE_WSPIAPI_H
havoc [Mon, 2 Nov 2009 01:15:50 +0000 (01:15 +0000)]
fix USE_WSPIAPI_H

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9414 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoanother attempt at WIN32RELEASE
havoc [Mon, 2 Nov 2009 01:14:28 +0000 (01:14 +0000)]
another attempt at WIN32RELEASE

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9413 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoanother attempt at WIN32RELEASE
havoc [Mon, 2 Nov 2009 01:13:39 +0000 (01:13 +0000)]
another attempt at WIN32RELEASE

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9412 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix WIN32RELEASE check
havoc [Mon, 2 Nov 2009 01:07:07 +0000 (01:07 +0000)]
fix WIN32RELEASE check

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9411 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoadding a WIN32RELEASE flag which uses my build options
havoc [Mon, 2 Nov 2009 01:04:04 +0000 (01:04 +0000)]
adding a WIN32RELEASE flag which uses my build options

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9410 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix compatibility with old windows versions when USE_WSPIAPI_H is
havoc [Mon, 2 Nov 2009 00:43:04 +0000 (00:43 +0000)]
fix compatibility with old windows versions when USE_WSPIAPI_H is
defined

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9409 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoadd a little bias to prevent constant contact cases with sv_gameplayfix_nudgeoutofsolid
havoc [Sun, 1 Nov 2009 23:07:12 +0000 (23:07 +0000)]
add a little bias to prevent constant contact cases with sv_gameplayfix_nudgeoutofsolid

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9408 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix bug with bogus refresh rate info in xvidmode data
divverent [Fri, 30 Oct 2009 18:10:15 +0000 (18:10 +0000)]
fix bug with bogus refresh rate info in xvidmode data

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9403 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix stupid console input bug
divverent [Fri, 30 Oct 2009 18:01:32 +0000 (18:01 +0000)]
fix stupid console input bug

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9402 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix makefile bug of DP_ODE_STATIC_LIBDIR combined with double-precision ODE
divverent [Mon, 26 Oct 2009 07:14:10 +0000 (07:14 +0000)]
fix makefile bug of DP_ODE_STATIC_LIBDIR combined with double-precision ODE

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9401 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoimplemented sv_gameplayfix_nudgeoutofsolid
havoc [Sun, 25 Oct 2009 13:47:37 +0000 (13:47 +0000)]
implemented sv_gameplayfix_nudgeoutofsolid

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9400 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoreworked brush collisions to support edgedir cross products, this should
havoc [Sun, 25 Oct 2009 04:41:01 +0000 (04:41 +0000)]
reworked brush collisions to support edgedir cross products, this should
improve collisions with curves and triangle meshes in general

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9399 d7cf8633-e32d-0410-b094-e92efae38249

14 years agosanity checks on shadowmap size relative to border size
eihrul [Sat, 24 Oct 2009 20:49:47 +0000 (20:49 +0000)]
sanity checks on shadowmap size relative to border size

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9398 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix handling of entities which change movetype at runtime
divverent [Sat, 24 Oct 2009 17:42:41 +0000 (17:42 +0000)]
fix handling of entities which change movetype at runtime

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9397 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoDP_QC_ENTITYSTRING: menu builtins like reading/writing whole entities -> svqc, csqc too
divverent [Sat, 24 Oct 2009 16:38:15 +0000 (16:38 +0000)]
DP_QC_ENTITYSTRING: menu builtins like reading/writing whole entities -> svqc, csqc too

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9396 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoODE code cleanup; WARNING: interface change. Springs done with movedir need to be...
divverent [Sat, 24 Oct 2009 14:27:02 +0000 (14:27 +0000)]
ODE code cleanup; WARNING: interface change. Springs done with movedir need to be changed from movedir "x y z" to "x z 0" in your maps (the parameter y was previously unused).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9395 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoadd a missing VectorClear
divverent [Sat, 24 Oct 2009 12:30:31 +0000 (12:30 +0000)]
add a missing VectorClear

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9394 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix a serious bug in R_Mesh_AddBrushMeshFromPlanes with maxdist not
havoc [Fri, 23 Oct 2009 18:26:25 +0000 (18:26 +0000)]
fix a serious bug in R_Mesh_AddBrushMeshFromPlanes with maxdist not
using fabs

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9393 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoadd support for fixed joints (jointtype -1), debug only according to ODE docs
divverent [Fri, 23 Oct 2009 13:57:50 +0000 (13:57 +0000)]
add support for fixed joints (jointtype -1), debug only according to ODE docs

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9392 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix FLT_MAX on visual studio sucky compiler
divverent [Fri, 23 Oct 2009 13:23:17 +0000 (13:23 +0000)]
fix FLT_MAX on visual studio sucky compiler

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9391 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoadd missing dInfinity
divverent [Fri, 23 Oct 2009 13:06:05 +0000 (13:06 +0000)]
add missing dInfinity

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9390 d7cf8633-e32d-0410-b094-e92efae38249

14 years agoadd two missing functions
divverent [Fri, 23 Oct 2009 13:03:02 +0000 (13:03 +0000)]
add two missing functions

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9389 d7cf8633-e32d-0410-b094-e92efae38249

14 years agomore ODE fixes
divverent [Fri, 23 Oct 2009 13:01:52 +0000 (13:01 +0000)]
more ODE fixes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9388 d7cf8633-e32d-0410-b094-e92efae38249

14 years agomake ODE entities call touch functions
divverent [Fri, 23 Oct 2009 09:11:54 +0000 (09:11 +0000)]
make ODE entities call touch functions

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9387 d7cf8633-e32d-0410-b094-e92efae38249

14 years agospeed up ODE by not creating bodies for non-physics entities any more (only creating...
divverent [Fri, 23 Oct 2009 07:07:42 +0000 (07:07 +0000)]
speed up ODE by not creating bodies for non-physics entities any more (only creating geoms now); fix speed limit code to no longer cause "butterfly flying"

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9386 d7cf8633-e32d-0410-b094-e92efae38249

14 years agohacky and experimental DP_LIGHTSTYLE_STATICVALUE extension, allows alternative 'stati...
vortex [Thu, 22 Oct 2009 22:54:35 +0000 (22:54 +0000)]
hacky and experimental DP_LIGHTSTYLE_STATICVALUE extension, allows alternative 'static' lightstyle syntax : "=value", examples: "=0.5", "=2.0", "=2.75". Could be safely used on CSQC side, but SVQC use is limited - other engines connecting to such server will misunderstand this style definition.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9385 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix ODE_DYNAMIC makefile stuff
divverent [Thu, 22 Oct 2009 11:26:54 +0000 (11:26 +0000)]
fix ODE_DYNAMIC makefile stuff

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9384 d7cf8633-e32d-0410-b094-e92efae38249

14 years agomakefile: new flag DP_ODE_DYNAMIC
divverent [Thu, 22 Oct 2009 09:02:17 +0000 (09:02 +0000)]
makefile: new flag DP_ODE_DYNAMIC

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9383 d7cf8633-e32d-0410-b094-e92efae38249

14 years agofix warning
divverent [Thu, 22 Oct 2009 08:59:35 +0000 (08:59 +0000)]
fix warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9382 d7cf8633-e32d-0410-b094-e92efae38249

14 years agodue to huge slowdowns even in non-ODE using games (probably from body syncing), turn...
divverent [Thu, 22 Oct 2009 08:58:55 +0000 (08:58 +0000)]
due to huge slowdowns even in non-ODE using games (probably from body syncing), turn off ODE_DYNAMIC by default again until this is solved (e.g. by performing no ODE stuff if there is no single MOVETYPE_PHYSICS ent)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9381 d7cf8633-e32d-0410-b094-e92efae38249

14 years agomovedir stuff
divverent [Thu, 22 Oct 2009 08:11:00 +0000 (08:11 +0000)]
movedir stuff

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9380 d7cf8633-e32d-0410-b094-e92efae38249

14 years agomake movedir_y fps independent
divverent [Thu, 22 Oct 2009 08:08:29 +0000 (08:08 +0000)]
make movedir_y fps independent

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9379 d7cf8633-e32d-0410-b094-e92efae38249