]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
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

16 years agoreworked min/avg/max fps report in timedemo, now works again
havoc [Thu, 28 Feb 2008 10:01:04 +0000 (10:01 +0000)]
reworked min/avg/max fps report in timedemo, now works again

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

16 years agofixed a problem with snd_renderbuffer->endframe being updated in the
havoc [Thu, 28 Feb 2008 03:35:17 +0000 (03:35 +0000)]
fixed a problem with snd_renderbuffer->endframe being updated in the
wrong place, causing windows waveOut audio to fail

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

16 years agoI must have been smoking cannabis when I wrote this (a pity I dont smoke cannabis...
black [Wed, 27 Feb 2008 22:59:43 +0000 (22:59 +0000)]
I must have been smoking cannabis when I wrote this (a pity I dont smoke cannabis). Fix CSQC_Ent_Spawn handling.

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

16 years agoDon't try to render something when height or width are zero.
black [Wed, 27 Feb 2008 22:11:08 +0000 (22:11 +0000)]
Don't try to render something when height or width are zero.

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

16 years agoMake the "no such builtin" message more descriptive
divverent [Wed, 27 Feb 2008 19:04:49 +0000 (19:04 +0000)]
Make the "no such builtin" message more descriptive

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

16 years ago|sort
divverent [Wed, 27 Feb 2008 16:49:00 +0000 (16:49 +0000)]
|sort

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

16 years agoDP_QC_NUM_FOR_EDICT extension implemented by Blub
havoc [Wed, 27 Feb 2008 16:34:09 +0000 (16:34 +0000)]
DP_QC_NUM_FOR_EDICT extension implemented by Blub

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

16 years agoslight change in location of a piece of code, should have no effect
havoc [Wed, 27 Feb 2008 16:05:58 +0000 (16:05 +0000)]
slight change in location of a piece of code, should have no effect
(this makes it closer to the way it was)

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

16 years agofix a typo (but it was harmless)
havoc [Wed, 27 Feb 2008 16:04:46 +0000 (16:04 +0000)]
fix a typo (but it was harmless)

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

16 years agoimplemented threaded audio mixing for SDL client (required some
havoc [Wed, 27 Feb 2008 15:22:17 +0000 (15:22 +0000)]
implemented threaded audio mixing for SDL client (required some
minor clean up of S_PaintAndSubmit and the functions it called, the
buffer painting management makes a lot more sense now)
fixed bug with looping sounds mixing sound to the wrong part of the
buffer after looping (uses a pointer instead of paintbuffer now)

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

16 years agooops... double builtins suck
divverent [Wed, 27 Feb 2008 14:01:55 +0000 (14:01 +0000)]
oops... double builtins suck

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

16 years agooops... use upper case hex, as that matches URI::Escape module (HTTP allows both)
divverent [Wed, 27 Feb 2008 13:54:22 +0000 (13:54 +0000)]
oops... use upper case hex, as that matches URI::Escape module (HTTP allows both)

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

16 years agoDP_QC_URI_ESCAPE
divverent [Wed, 27 Feb 2008 13:51:57 +0000 (13:51 +0000)]
DP_QC_URI_ESCAPE

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

16 years agoone last try to beat the OSX texture scrolling bug (set activetexture
havoc [Wed, 27 Feb 2008 11:52:29 +0000 (11:52 +0000)]
one last try to beat the OSX texture scrolling bug (set activetexture
and clientactivetexture - even though only the former is needed, and do
so before switching the matrixmode to texture)

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

16 years agofix bug in wav loader that messed up loopstart, now looping sounds in
havoc [Wed, 27 Feb 2008 11:35:48 +0000 (11:35 +0000)]
fix bug in wav loader that messed up loopstart, now looping sounds in
quake work properly

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

16 years agofix toggle command's error message for cvars that are not found (thanks
havoc [Wed, 27 Feb 2008 08:43:29 +0000 (08:43 +0000)]
fix toggle command's error message for cvars that are not found (thanks
to metlslime for reporting this)

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