]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
15 years agooops, exteriormodeltoclient is NOT a kind of attachment
divverent [Tue, 22 Apr 2008 08:25:29 +0000 (08:25 +0000)]
oops, exteriormodeltoclient is NOT a kind of attachment

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

15 years agofix CSQC crash bug with r_showbboxes; try to hide bogus boxes near 0,0,0 for attached...
divverent [Tue, 22 Apr 2008 08:24:19 +0000 (08:24 +0000)]
fix CSQC crash bug with r_showbboxes; try to hide bogus boxes near 0,0,0 for attached entities (but there are still some, like, on basement... odd)

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

15 years agoglobally rename model_t to dp_model_t for OpenSolaris. Sorry, guys who now have svn...
divverent [Mon, 21 Apr 2008 19:16:59 +0000 (19:16 +0000)]
globally rename model_t to dp_model_t for OpenSolaris. Sorry, guys who now have svn conflicts, but otherwise it just won't compile on OpenSolaris...

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

15 years agothis should fix some Solaris/NetBSD/OpenBSD compile problems, model_t still remaining
divverent [Mon, 21 Apr 2008 11:46:49 +0000 (11:46 +0000)]
this should fix some Solaris/NetBSD/OpenBSD compile problems, model_t still remaining

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

16 years agochanged cl_stainmaps to be a loadtime cvar which decides whether to
havoc [Fri, 18 Apr 2008 10:11:43 +0000 (10:11 +0000)]
changed cl_stainmaps to be a loadtime cvar which decides whether to
allocate stainmaps at all, this saves some memory if it's 0 (which is
the default)
changed stainmap allocation to lump all allocations into one big one,
this saves 1.5MB of memory system overhead (tracking about 28000
allocations for stainmaps in cavetest2.bsp has a lot of overhead) and
probably a good deal more malloc overhead on top of that

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

16 years agochanged meaning of r_useportalculling 1 to only use it with r_novis 1
havoc [Fri, 18 Apr 2008 09:55:37 +0000 (09:55 +0000)]
changed meaning of r_useportalculling 1 to only use it with r_novis 1
cases (it would be good to use it when no vis data is loaded also, but
that's not currently handled)

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

16 years agoload SHGetFolderPath from shfolder.dll dynamically to remove the dependency (should...
divverent [Wed, 16 Apr 2008 07:17:02 +0000 (07:17 +0000)]
load SHGetFolderPath from shfolder.dll dynamically to remove the dependency (should make DP work on Win95 again)

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

16 years agofix "wrong ping times" issue once and for all (I don't see another fix that wouldn...
divverent [Sun, 13 Apr 2008 14:17:10 +0000 (14:17 +0000)]
fix "wrong ping times" issue once and for all (I don't see another fix that wouldn't at the same time re-enable a speedhack)

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

16 years agoadded gl_workaround_mac_texmatrix cvar to allow some testing to be done
havoc [Sat, 12 Apr 2008 09:22:04 +0000 (09:22 +0000)]
added gl_workaround_mac_texmatrix cvar to allow some testing to be done
on the osx GLSL texmatrix bug
modified R_Mesh_Draw to make gl_mesh_prefer_short_elements 0 apply to
element buffers as well as arrays, if both forms of element buffer are
provided (this is only a behavior improvement, no effect currently)

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

16 years agoadded 1360x768 resolution (used by some TVs), slightly narrower than
havoc [Fri, 11 Apr 2008 19:30:19 +0000 (19:30 +0000)]
added 1360x768 resolution (used by some TVs), slightly narrower than
1366x768 resolution which was already supported

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

16 years agoimplemented uint16 element array support, and use of it for all the
havoc [Thu, 10 Apr 2008 07:03:36 +0000 (07:03 +0000)]
implemented uint16 element array support, and use of it for all the
engine-generated geometry (particles, skybox, text, etc), as well as for
any map or model that fits the 65536 vertex limit (this can be disabled
for performance testing using the cvar gl_mesh_prefer_short_elements),
this hopefully improves performance on Radeon 9500-X300 cards and
GeForce1/2 cards which don't support uint32 elements

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

16 years agoremoved unused R_Mesh_Draw_ShowTris
havoc [Thu, 10 Apr 2008 04:26:21 +0000 (04:26 +0000)]
removed unused R_Mesh_Draw_ShowTris

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

16 years agopatch from esteel which moves icons to the right of numbers on the
havoc [Thu, 10 Apr 2008 03:48:29 +0000 (03:48 +0000)]
patch from esteel which moves icons to the right of numbers on the
nexuiz alternate hud to give a better impression of what the numbers
refer to

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

16 years agoreload effectinfo.txt on each level
havoc [Wed, 9 Apr 2008 17:13:24 +0000 (17:13 +0000)]
reload effectinfo.txt on each level

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

16 years agoremoved silly red dot on blood effects again
havoc [Wed, 9 Apr 2008 17:13:06 +0000 (17:13 +0000)]
removed silly red dot on blood effects again

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

16 years agofix loading of q1bsp submodel bounding boxes, especially empty submodels
havoc [Tue, 8 Apr 2008 16:22:03 +0000 (16:22 +0000)]
fix loading of q1bsp submodel bounding boxes, especially empty submodels
this fixes the disappearing doors bug in slave.bsp caused by empty
submodels having a bounding box as large as the entire map

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

16 years agopatch from esteel which swaps the address and player number in the
havoc [Tue, 8 Apr 2008 06:18:33 +0000 (06:18 +0000)]
patch from esteel which swaps the address and player number in the
naming of sv_autodemo_perclient demos, so that player number comes first

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

16 years agoadded con_completion_playdemo/timedemo/exec cvars, this enables
havoc [Mon, 7 Apr 2008 19:16:13 +0000 (19:16 +0000)]
added con_completion_playdemo/timedemo/exec cvars, this enables
completion of playdemo, timedemo, and exec commands

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

16 years agofix div0's GL_BuildOrtho which break compilation on Windows
havoc [Sun, 6 Apr 2008 17:48:33 +0000 (17:48 +0000)]
fix div0's GL_BuildOrtho which break compilation on Windows
(near and far are keywords, not variable names)

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

16 years agoeliminate two calls to qglGetDoublev that possibly slow down rendering by doing a...
divverent [Thu, 3 Apr 2008 22:00:13 +0000 (22:00 +0000)]
eliminate two calls to qglGetDoublev that possibly slow down rendering by doing a round trip to the GPU to request the matrices. However, on the tested system, this change does absolutely nothing (233fps vs 233fps), and Xnest, forcing indirect rendering and a ssh -Y localhost did not change that. On an actual network connection however, this new way is SURE faster, as it avoids a round trip over the network.

Infinite far clip already used this method, as there is no GL helper for using the infinite far clip matrix.

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

16 years agorenamed Q3FACETYPE_POLYGON to Q3FACETYPE_FLAT
havoc [Tue, 1 Apr 2008 13:26:41 +0000 (13:26 +0000)]
renamed Q3FACETYPE_POLYGON to Q3FACETYPE_FLAT

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

16 years agodisabled QHOST by default (can be enabled with an edit to sys_win.c and
havoc [Tue, 1 Apr 2008 13:09:21 +0000 (13:09 +0000)]
disabled QHOST by default (can be enabled with an edit to sys_win.c and
the re-addition of conproc.c), I don't think anyone ever uses it

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

16 years agofixed Sys_Error popups in -dedicated console setup code so that they
havoc [Tue, 1 Apr 2008 11:41:33 +0000 (11:41 +0000)]
fixed Sys_Error popups in -dedicated console setup code so that they
actually do appear (by forcing cls.state to ca_disconnected)

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

16 years agocomment out a line to make the darkplaces.exe -dedicated console show
havoc [Tue, 1 Apr 2008 09:06:47 +0000 (09:06 +0000)]
comment out a line to make the darkplaces.exe -dedicated console show
up, apparently the initial houtput is never 0 or invalid on Windows XP,
which causes it to never open a console - but then error out because the
hinput is invalid

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

16 years agoclean up a couple warnings
havoc [Tue, 1 Apr 2008 09:01:43 +0000 (09:01 +0000)]
clean up a couple warnings

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

16 years agopatch from Blub\0 which adds back the wrapping behavior on pitch when
havoc [Sun, 30 Mar 2008 10:17:16 +0000 (10:17 +0000)]
patch from Blub\0 which adds back the wrapping behavior on pitch when
in_pitch_min/max are set to very large values (this basically lets you
aim up or down so much that you wrap to the other direction)

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

16 years agoswap VF_SIZE_X and VF_SIZE_Y definitions to what they should be (this
havoc [Sun, 30 Mar 2008 00:46:57 +0000 (00:46 +0000)]
swap VF_SIZE_X and VF_SIZE_Y definitions to what they should be (this
has no effect on behavior, they were simply misnamed internally)

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

16 years agoimplemented r_refdef.view.isoverlay state, this corresponds to the
havoc [Tue, 25 Mar 2008 02:32:43 +0000 (02:32 +0000)]
implemented r_refdef.view.isoverlay state, this corresponds to the
state of R_SetView VF_CLEARSCREEN and disables clearing and bloom when
rendering overlays

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

16 years agoin csqc set self to the client entity before calling most functions
havoc [Tue, 25 Mar 2008 00:32:26 +0000 (00:32 +0000)]
in csqc set self to the client entity before calling most functions

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

16 years agoPatch from Qantourisc adding support for his 3D sound library
havoc [Mon, 24 Mar 2008 20:47:24 +0000 (20:47 +0000)]
Patch from Qantourisc adding support for his 3D sound library

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

16 years agomade cl_particles_quake mode more authentic
havoc [Mon, 24 Mar 2008 05:24:52 +0000 (05:24 +0000)]
made cl_particles_quake mode more authentic

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

16 years agoimplemented better \ parsing, matching stock Quake better
havoc [Mon, 24 Mar 2008 00:13:43 +0000 (00:13 +0000)]
implemented better \ parsing, matching stock Quake better

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

16 years agoadded lingering blood and gunshot/spike particles to make it clear where
havoc [Sun, 23 Mar 2008 22:06:40 +0000 (22:06 +0000)]
added lingering blood and gunshot/spike particles to make it clear where
shots hit

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

16 years agofix stupid bug in \n and \r parsing
havoc [Sun, 23 Mar 2008 21:32:15 +0000 (21:32 +0000)]
fix stupid bug in \n and \r parsing

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

16 years agouse \n parsing on globals in savegames
havoc [Sun, 23 Mar 2008 21:21:44 +0000 (21:21 +0000)]
use \n parsing on globals in savegames

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

16 years agoadded r_drawfog cvar at esteel's request
havoc [Sun, 23 Mar 2008 21:20:30 +0000 (21:20 +0000)]
added r_drawfog cvar at esteel's request

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

16 years agoreenable the \r parsing for consistency sake
havoc [Sun, 23 Mar 2008 20:21:03 +0000 (20:21 +0000)]
reenable the \r parsing for consistency sake

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

16 years agodon't parse \ characters when reading sav files or map entities, let the
havoc [Sun, 23 Mar 2008 04:27:20 +0000 (04:27 +0000)]
don't parse \ characters when reading sav files or map entities, let the
ParseEpair function take care of \n and nothing else (and not if it's a
wad key)
this should fix compatibility with the quake map solstart.bsp which has
a \ character at the end of the wad value, also affecting a couple other
maps but not as badly

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

16 years agoAdded server QC function "movetypesteplandevent". This function, if assigned to...
dresk [Sun, 23 Mar 2008 03:20:49 +0000 (03:20 +0000)]
Added server QC function "movetypesteplandevent".  This function, if assigned to a MOVETYPE_STEP (ie. monster) entity in QC, is called when the entity experiences a "land event" wherein normally the sound sv_sound_land is played.  If this function is assigned, the standard server sound is suppressed, allowing for full configuration by the QC.

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

16 years agopatch from Blub that adds the command "defer" which executes a command
havoc [Thu, 20 Mar 2008 20:02:03 +0000 (20:02 +0000)]
patch from Blub that adds the command "defer" which executes a command
after a specified number of seconds, without interrupting normal play

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

16 years agopatch from Blub adding cprint (centerprint) console command, similar to
havoc [Thu, 20 Mar 2008 19:57:23 +0000 (19:57 +0000)]
patch from Blub adding cprint (centerprint) console command, similar to
echo

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

16 years agohow did boxready survive? oh well
havoc [Thu, 20 Mar 2008 19:31:33 +0000 (19:31 +0000)]
how did boxready survive?  oh well

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

16 years agodamn, I accidentally committed this with the last fix... now that it HAS happened...
divverent [Thu, 20 Mar 2008 10:42:12 +0000 (10:42 +0000)]
damn, I accidentally committed this with the last fix... now that it HAS happened, at least if(... == GAME_NEXUIZ) it

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

16 years agofix obvious bugs in r8214
divverent [Wed, 19 Mar 2008 14:10:21 +0000 (14:10 +0000)]
fix obvious bugs in r8214

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

16 years agochanged use of infinite farclip to depend on 32bpp modes instead of on
havoc [Wed, 19 Mar 2008 02:24:09 +0000 (02:24 +0000)]
changed use of infinite farclip to depend on 32bpp modes instead of on
whether shadows are enabled
added r_useinfinitefarclip cvar to allow disabling this otherwise forced
feature if it causes problems for anyone (was on for most users already)
optimized farclip math a little bit (use model->radius * 2 instead of
VectorDistance from corner to corner)

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

16 years agoenlarge q3bsp bounding box to include all geometry, this is necessary
havoc [Wed, 19 Mar 2008 02:16:57 +0000 (02:16 +0000)]
enlarge q3bsp bounding box to include all geometry, this is necessary
because q3map2 sometimes lies (to alter the lightgrid box)

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

16 years agoIt seems that 2.4 BSDmakefile is missing some SDL defines, and thus is
divverent [Tue, 18 Mar 2008 13:06:34 +0000 (13:06 +0000)]
It seems that 2.4 BSDmakefile is missing some SDL defines, and thus is
broken (tested under FreeBSD). Also, last lines about dependencies are
probably gmake-leftovers and are not needed on BSD (in fact, they've been
causing errors since some older version). Please consider attached patch.
Thanks. -- danfe (FreeBSD port maintainer)

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

16 years agofix cmd again (fix by Blub and me)
divverent [Sun, 16 Mar 2008 17:31:32 +0000 (17:31 +0000)]
fix cmd again (fix by Blub and me)

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

16 years agofix segfault with long aliases
divverent [Sat, 15 Mar 2008 22:17:33 +0000 (22:17 +0000)]
fix segfault with long aliases

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

16 years agodisable pitch drift when csqc wants mouse moves
havoc [Wed, 12 Mar 2008 05:17:02 +0000 (05:17 +0000)]
disable pitch drift when csqc wants mouse moves

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

16 years agoadded 3 optional parameters to the csqc R_AddDynamicLight builtin
havoc [Wed, 12 Mar 2008 00:05:31 +0000 (00:05 +0000)]
added 3 optional parameters to the csqc R_AddDynamicLight builtin
(style, cubemapname, pflags) and made it read v_forward, v_right, and
v_up to orient the light (useful mainly with cubemaps), these can also
(at least in DarkPlaces) be used as an alternative to radius (pass in
radius = 1 if they are pre-scaled)

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

16 years agoreplaced cl.movement_queue with direct use of cl.movecmd array, this
havoc [Mon, 10 Mar 2008 02:06:32 +0000 (02:06 +0000)]
replaced cl.movement_queue with direct use of cl.movecmd array, this
saves a little memory but mostly it simplifies some logic
reworked much of the prediction system
now extrapolates latest movement gathered instead of interpolating
between the last two moves sent, this reduces visual latency by 50-99ms
and deals better (but not perfectly) with mismatched framerates like
cl_maxfps 30 and cl_netfps 20

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

16 years agogo back to block counting, looks like we now know what's broken with waveOut
divverent [Sun, 9 Mar 2008 19:26:39 +0000 (19:26 +0000)]
go back to block counting, looks like we now know what's broken with waveOut

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

16 years agolower cl_netfps default from 72 to 20
havoc [Sun, 9 Mar 2008 18:23:33 +0000 (18:23 +0000)]
lower cl_netfps default from 72 to 20

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

16 years agofixed jerky cl_movement with cl_netfps below current fps, by making
havoc [Sun, 9 Mar 2008 17:20:10 +0000 (17:20 +0000)]
fixed jerky cl_movement with cl_netfps below current fps, by making
packet interval operate in realtime rather than cl.time

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

16 years agoadded cl_netimmediatebuttons cvar which causes additional input packets
havoc [Sun, 9 Mar 2008 01:09:35 +0000 (01:09 +0000)]
added cl_netimmediatebuttons cvar which causes additional input packets
(beyond cl_netfps) when buttons or impulse change, giving better timing
accuracy when it counts (pressing fire)

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

16 years agoslight improvement to sound latency math (moved it after new sound data
havoc [Sun, 9 Mar 2008 01:08:42 +0000 (01:08 +0000)]
slight improvement to sound latency math (moved it after new sound data
is added)

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

16 years agoadded showsound cvar which displays number of sounds actively being
havoc [Sat, 8 Mar 2008 22:41:35 +0000 (22:41 +0000)]
added showsound cvar which displays number of sounds actively being
mixed, and total sound sources, and latency

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

16 years agoadded WAV_BUFFERTIME setting of 0.125 (used to be 0.5)
havoc [Sat, 8 Mar 2008 22:40:01 +0000 (22:40 +0000)]
added WAV_BUFFERTIME setting of 0.125 (used to be 0.5)
reduced WAV_BUFFERS from 64 to 16

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

16 years agotry using waveOutGetPosition instead of block counting (revert or #ifdef this if...
divverent [Sat, 8 Mar 2008 21:24:27 +0000 (21:24 +0000)]
try using waveOutGetPosition instead of block counting (revert or #ifdef this if it breaks anything)

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

16 years agofix MMSYSERRR_STILLPLAYING handling to not increment snd_sent
havoc [Sat, 8 Mar 2008 20:24:58 +0000 (20:24 +0000)]
fix MMSYSERRR_STILLPLAYING handling to not increment snd_sent

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

16 years agoonly go ahead if WAVERR_STILLPLAYING is encountered, other errors are fatal to the...
divverent [Sat, 8 Mar 2008 20:12:48 +0000 (20:12 +0000)]
only go ahead if WAVERR_STILLPLAYING is encountered, other errors are fatal to the sound system again.
TODO: handle WAVERR_STILLPLAYING in a better way (like, clearing the buffer?)

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

16 years agomade waveOutWrite overrun a non-fatal (if spammy) warning, and only with
havoc [Sat, 8 Mar 2008 19:58:15 +0000 (19:58 +0000)]
made waveOutWrite overrun a non-fatal (if spammy) warning, and only with
developer 1000

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

16 years agofix crash when q1bsp submodels are checked with PointSuperContents
havoc [Sat, 8 Mar 2008 18:57:54 +0000 (18:57 +0000)]
fix crash when q1bsp submodels are checked with PointSuperContents
(oops)

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

16 years agoanother attempt at fixing the Mac OSX rotating hud problem
havoc [Sat, 8 Mar 2008 16:55:46 +0000 (16:55 +0000)]
another attempt at fixing the Mac OSX rotating hud problem

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

16 years agodisable threaded mixing in coreaudio backend (still threaded callback
havoc [Sat, 8 Mar 2008 03:58:11 +0000 (03:58 +0000)]
disable threaded mixing in coreaudio backend (still threaded callback
method since coreaudio always uses that) - why does it crash?

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

16 years agoincreased maxtempentities from 512 to 4096, this affects how many csqc
havoc [Sat, 8 Mar 2008 03:44:55 +0000 (03:44 +0000)]
increased maxtempentities from 512 to 4096, this affects how many csqc
entities can be renderable at once (need to make this grow instead)

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

16 years agoadded a -I option on Mac OSX SDL builds to include the relevant Headers
havoc [Thu, 6 Mar 2008 19:44:56 +0000 (19:44 +0000)]
added a -I option on Mac OSX SDL builds to include the relevant Headers
directory, added a reference to this in the relevant LIBS variables
(because SDLMain.m needs the includes as well)

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

16 years agofix bug that makes lava bridge in e1m6 kill you (as if you're in the
havoc [Thu, 6 Mar 2008 14:34:17 +0000 (14:34 +0000)]
fix bug that makes lava bridge in e1m6 kill you (as if you're in the
lava it came out of), thanks to Lardarse for reporting this

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

16 years agoup the default cl_netfps to 72, which is higher than vsync for most
havoc [Mon, 3 Mar 2008 22:35:10 +0000 (22:35 +0000)]
up the default cl_netfps to 72, which is higher than vsync for most
people

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

16 years agoremoved cl_netinputpacketsperserverpacket (now uses
havoc [Mon, 3 Mar 2008 13:55:53 +0000 (13:55 +0000)]
removed cl_netinputpacketsperserverpacket (now uses
cl_netinputpacketspersecond again)
removed cl_netinputpacketspersecond_qw (now uses the main one)
renamed cl_netinputpacketspersecond to cl_netfps
renamed cl_netinputpacketlosstolerance to cl_netrepeatinput
changed default cl_netfps to 60 (from 20)

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

16 years agofix support for zip archives made by the standard Mac OSX archiver
havoc [Mon, 3 Mar 2008 13:25:38 +0000 (13:25 +0000)]
fix support for zip archives made by the standard Mac OSX archiver
(ignore bit 3 in the general flags - the fields ARE valid in the central
 directory, just not in the stream data)

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

16 years agoRemove FS_FIX_PATHS again and disable model rendering in the menu until someone can...
black [Sun, 2 Mar 2008 22:31:03 +0000 (22:31 +0000)]
Remove FS_FIX_PATHS again and disable model rendering in the menu until someone can do it correctly (both were hacks).

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

16 years agofix really stupid typo in coreaudio init (!= was supposed to be ==)
havoc [Sun, 2 Mar 2008 19:45:38 +0000 (19:45 +0000)]
fix really stupid typo in coreaudio init (!= was supposed to be ==)

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

16 years agofix missing particles when you join a server late in the game
havoc [Sun, 2 Mar 2008 16:32:15 +0000 (16:32 +0000)]
fix missing particles when you join a server late in the game

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

16 years agounconst something
divverent [Sun, 2 Mar 2008 16:32:04 +0000 (16:32 +0000)]
unconst something

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

16 years agoimproved CL_ParticleTrail's check for unknown effect numbers
havoc [Sun, 2 Mar 2008 16:03:47 +0000 (16:03 +0000)]
improved CL_ParticleTrail's check for unknown effect numbers

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

16 years agoadded a dprint for unknown effect numbers
havoc [Sun, 2 Mar 2008 15:28:42 +0000 (15:28 +0000)]
added a dprint for unknown effect numbers

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

16 years agoadded svc_trailparticles, svc_pointparticles, and svc_pointparticles1 to
havoc [Sun, 2 Mar 2008 15:23:25 +0000 (15:23 +0000)]
added svc_trailparticles, svc_pointparticles, and svc_pointparticles1 to
the list of svc_ code names for cl_shownet 2 prints

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

16 years agoadded support for snd_blocked (related to the snd_mutewhenidle cvar) in
havoc [Sun, 2 Mar 2008 13:45:58 +0000 (13:45 +0000)]
added support for snd_blocked (related to the snd_mutewhenidle cvar) in
threaded mixers

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

16 years agothreaded audio mixing for OSX
havoc [Sun, 2 Mar 2008 12:28:33 +0000 (12:28 +0000)]
threaded audio mixing for OSX

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

16 years agoadded a parameter to S_StopChannel to trigger a mutex lock, this fixes
havoc [Sun, 2 Mar 2008 12:06:55 +0000 (12:06 +0000)]
added a parameter to S_StopChannel to trigger a mutex lock, this fixes
crashes in the SDL audio callback when S_StopChannel clears fields while
they are being used in the mixer (this mostly crashed on level changes),
the mutex lock itself is done simply by calling SndSys_LockRenderBuffer

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

16 years agowhitespace
havoc [Sun, 2 Mar 2008 12:01:07 +0000 (12:01 +0000)]
whitespace

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

16 years agowhitespace
havoc [Sun, 2 Mar 2008 11:58:50 +0000 (11:58 +0000)]
whitespace

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

16 years agofix ev_field parser for savegames
havoc [Sat, 1 Mar 2008 13:24:42 +0000 (13:24 +0000)]
fix ev_field parser for savegames

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

16 years agoreenable stripping of release binaries
havoc [Sat, 1 Mar 2008 09:43:09 +0000 (09:43 +0000)]
reenable stripping of release binaries

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

16 years agofixed GL_CheckExtension to not even bother checking for an extension if
havoc [Sat, 1 Mar 2008 08:03:23 +0000 (08:03 +0000)]
fixed GL_CheckExtension to not even bother checking for an extension if
the name does not begin with GL_ or WGL_ or similar things

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

16 years agoinit gl_extensions and gl_platformextensions to "" before fetching
havoc [Sat, 1 Mar 2008 07:13:28 +0000 (07:13 +0000)]
init gl_extensions and gl_platformextensions to "" before fetching
wglfuncs

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

16 years agodon't bother doing two-pass window setup unless vid_samples is greater
havoc [Sat, 1 Mar 2008 06:54:30 +0000 (06:54 +0000)]
don't bother doing two-pass window setup unless vid_samples is greater
than 1

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

16 years agoclear some variables when VID_Shutdown is called (the other 3 vid
havoc [Sat, 1 Mar 2008 06:45:32 +0000 (06:45 +0000)]
clear some variables when VID_Shutdown is called (the other 3 vid
modules already did this)

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

16 years agomake sure that gl_extensions and gl_platformextensions are not NULL
havoc [Sat, 1 Mar 2008 06:34:17 +0000 (06:34 +0000)]
make sure that gl_extensions and gl_platformextensions are not NULL

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

16 years agono longer stripping darkplaces release executables, because debugging
havoc [Sat, 1 Mar 2008 05:40:04 +0000 (05:40 +0000)]
no longer stripping darkplaces release executables, because debugging
symbols are too useful for crash reports

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

16 years agofix two-layer quake sky in r_glsl 1 mode (was blending the alpha layer wrongly)
havoc [Sat, 1 Mar 2008 04:54:54 +0000 (04:54 +0000)]
fix two-layer quake sky in r_glsl 1 mode (was blending the alpha layer wrongly)

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

16 years agodefault gl_texturecompression_q3bspdeluxemaps to 0
havoc [Fri, 29 Feb 2008 15:17:39 +0000 (15:17 +0000)]
default gl_texturecompression_q3bspdeluxemaps to 0

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

16 years agouse a better cast on a parameter in a ToAscii call, might fix a warning,
havoc [Fri, 29 Feb 2008 10:37:26 +0000 (10:37 +0000)]
use a better cast on a parameter in a ToAscii call, might fix a warning,
probably not

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

16 years agofix warnings on qglGetString calls
havoc [Fri, 29 Feb 2008 10:31:06 +0000 (10:31 +0000)]
fix warnings on qglGetString calls

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

16 years agoa fix from Black for prevseparator, hopefully the only bug
havoc [Fri, 29 Feb 2008 09:58:15 +0000 (09:58 +0000)]
a fix from Black for prevseparator, hopefully the only bug

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

16 years agoRestored FS_Search patch.
black [Fri, 29 Feb 2008 09:23:05 +0000 (09:23 +0000)]
Restored FS_Search patch.

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

16 years agoReverted Black's filematch changes for now, because they were still broken and we...
divverent [Thu, 28 Feb 2008 21:38:08 +0000 (21:38 +0000)]
Reverted Black's filematch changes for now, because they were still broken and we need to release, and I don't see how to fix it. Issue: "ls *.cfg" doesn't show the cfgs from the file system, just from the pk3s (e.g. it missed config.cfg), and on Windows it even showed something even weirder: "*.cfgconfig.cfg".

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

16 years agofix a bug in FS_ChangeGameDirs (it was doing a CL_Disconnect - can't do
havoc [Thu, 28 Feb 2008 10:35:29 +0000 (10:35 +0000)]
fix a bug in FS_ChangeGameDirs (it was doing a CL_Disconnect - can't do
that because when connecting to a QW server it disconnects)

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