10 years agofix csqc sound precaches which were being freed after the level loaded
havoc [Mon, 13 Apr 2009 01:47:09 +0000 (01:47 +0000)]
fix csqc sound precaches which were being freed after the level loaded

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

10 years agoyet another check in sv_gameplayfix_slidemoveprojectiles
havoc [Mon, 13 Apr 2009 01:46:43 +0000 (01:46 +0000)]
yet another check in sv_gameplayfix_slidemoveprojectiles

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

10 years agofix use of r_main_texturepool (it's a pointer, but this file imported it
havoc [Mon, 13 Apr 2009 00:35:51 +0000 (00:35 +0000)]
fix use of r_main_texturepool (it's a pointer, but this file imported it
as a struct)

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

10 years agoadded safety checks in S_PlaySfxOnChannel due to a report of a crash
havoc [Sun, 12 Apr 2009 23:22:57 +0000 (23:22 +0000)]
added safety checks in S_PlaySfxOnChannel due to a report of a crash
with ch->sfx == NULL in the mixer thread

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

10 years agoadd a small epsilon to the moveframetime check
divverent [Sun, 12 Apr 2009 19:16:00 +0000 (19:16 +0000)]
add a small epsilon to the moveframetime check

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

10 years agosv_clmovement_maxnetfps (default: 80), should prevent issues with high netfps
divverent [Sun, 12 Apr 2009 19:13:11 +0000 (19:13 +0000)]
sv_clmovement_maxnetfps (default: 80), should prevent issues with high netfps

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

10 years agoadd checkpvs() to client too (but could not add an extension name for it, as client...
divverent [Sun, 12 Apr 2009 19:12:33 +0000 (19:12 +0000)]
add checkpvs() to client too (but could not add an extension name for it, as client and server extension strings are the same)

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

10 years agofix crash in substring()
divverent [Sun, 12 Apr 2009 19:06:39 +0000 (19:06 +0000)]
fix crash in substring()

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

10 years agofix mispredictions when paused, or when console is down in singleplayer
havoc [Sun, 12 Apr 2009 10:29:30 +0000 (10:29 +0000)]
fix mispredictions when paused, or when console is down in singleplayer

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

10 years agodon't allocate packetlog entries if there is nothing to put in them -
havoc [Sun, 12 Apr 2009 10:06:31 +0000 (10:06 +0000)]
don't allocate packetlog entries if there is nothing to put in them -
fixes packetlog overflow messages when paused

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

10 years agotweak the start time of the level a bit to cause items to spawn before
havoc [Sun, 12 Apr 2009 09:52:57 +0000 (09:52 +0000)]
tweak the start time of the level a bit to cause items to spawn before
clients join

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

10 years agoclarify float() traceline comments to say void()
havoc [Sun, 12 Apr 2009 09:17:30 +0000 (09:17 +0000)]
clarify float() traceline comments to say void()

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

10 years agoadded hmac.[ch] and cap_avi.[ch] and cap_ogg.[ch] to some project files
havoc [Sun, 12 Apr 2009 09:16:10 +0000 (09:16 +0000)]
added hmac.[ch] and cap_avi.[ch] and cap_ogg.[ch] to some project files

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

10 years agoadded a workaround to hopefully fix a precaching error in kleshik on
havoc [Sun, 12 Apr 2009 08:45:03 +0000 (08:45 +0000)]
added a workaround to hopefully fix a precaching error in kleshik on
level changes with multiple players (where some of them appear without a
player model because the svc_precache message is being lost)

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

10 years agofix bug with sv_gameplayfix_slidemoveprojectiles not allowing proximity
havoc [Sun, 12 Apr 2009 07:23:09 +0000 (07:23 +0000)]
fix bug with sv_gameplayfix_slidemoveprojectiles not allowing proximity
mines to stick in hipnotic

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

10 years agodrawrotpic:
sajt [Sun, 12 Apr 2009 04:44:34 +0000 (04:44 +0000)]
- 'org' is the point on the image to rotate around ('0 0' is top-left)
- 'angle' is in degrees, counter-clockwise

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

10 years agofixed getinputstate not returning success/failure
havoc [Sun, 12 Apr 2009 02:07:18 +0000 (02:07 +0000)]
fixed getinputstate not returning success/failure

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

10 years agoimplemented FTE_STRINGS compliant substring behavior (FRIK_FILE feature
havoc [Sun, 12 Apr 2009 01:44:56 +0000 (01:44 +0000)]
implemented FTE_STRINGS compliant substring behavior (FRIK_FILE feature
but upgraded by FTE_STRINGS)

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

10 years agoIn function `S_ServerSounds': unused variable `sfxnext' (commented it out).
motorsep [Sat, 11 Apr 2009 20:07:47 +0000 (20:07 +0000)]
In function `S_ServerSounds': unused variable `sfxnext' (commented it out).

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

10 years agoUpdated project file for SDL build
motorsep [Sat, 11 Apr 2009 20:00:43 +0000 (20:00 +0000)]
Updated project file for SDL build

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

10 years agodon't print "empty file" spam here
divverent [Fri, 10 Apr 2009 20:16:39 +0000 (20:16 +0000)]
don't print "empty file" spam here

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

10 years agodo not unload models/sounds until signon is done, this prevents the
havoc [Fri, 10 Apr 2009 19:25:08 +0000 (19:25 +0000)]
do not unload models/sounds until signon is done, this prevents the
reloading of music tracks on level change, as well as the reloading of
csqc-precached models and sounds

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

10 years agodon't need to clear rcon_password on QW server reconnect, as *ip can't be written...
divverent [Fri, 10 Apr 2009 18:45:10 +0000 (18:45 +0000)]
don't need to clear rcon_password on QW server reconnect, as *ip can't be written to by the user

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

10 years ago- be less paranoid about clearing rcon_password (only needed when connecting to anoth...
divverent [Fri, 10 Apr 2009 18:01:43 +0000 (18:01 +0000)]
- be less paranoid about clearing rcon_password (only needed when connecting to another server as long as rcon_secure is 0, or when changing it to 0)
- default rcon_secure to 0, but introduce a new "srcon" command that always works in secure mode

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

10 years agoclear mouse input at a better stage (should fix cl_maxfps issues)
divverent [Fri, 10 Apr 2009 17:56:04 +0000 (17:56 +0000)]
clear mouse input at a better stage (should fix cl_maxfps issues)

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

10 years agoless loading screen refreshs
divverent [Fri, 10 Apr 2009 15:11:26 +0000 (15:11 +0000)]
less loading screen refreshs

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

10 years agofix stupid endless loop
divverent [Fri, 10 Apr 2009 14:37:23 +0000 (14:37 +0000)]
fix stupid endless loop

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

10 years agouse "realtime", not the float time global, for entity allocation and freeing to prote...
divverent [Thu, 9 Apr 2009 12:05:29 +0000 (12:05 +0000)]
use "realtime", not the float time global, for entity allocation and freeing to protect the entity slot for 0.5 seconds (now 1 second). Should help entity networking a lot, as the time global doesn't grow monotonically when cl_movement is used on a client (basically, a client with 500ms latency can free an entity in PlayerPreThink, and that entity slot could get immediately reused in the next server frame or think function).

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

10 years agodamn, set the RIGHT alpha to 1... to make the loading bar opaque
divverent [Thu, 9 Apr 2009 08:26:11 +0000 (08:26 +0000)]
damn, set the RIGHT alpha to 1... to make the loading bar opaque

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

10 years agowhen changing rcon_secure, always clear rcon_password, to prevent a send-as-plaintext...
divverent [Thu, 9 Apr 2009 08:24:52 +0000 (08:24 +0000)]
when changing rcon_secure, always clear rcon_password, to prevent a send-as-plaintext attack

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

10 years agoclear the rcon password on "connect" command or QW-style reconnect, to prevent stuffc...
divverent [Thu, 9 Apr 2009 07:59:14 +0000 (07:59 +0000)]
clear the rcon password on "connect" command or QW-style reconnect, to prevent stuffcmd based vulnerabilities that could expose the rcon password

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

10 years agobetter error handling for overlong srcon commands
divverent [Thu, 9 Apr 2009 07:32:54 +0000 (07:32 +0000)]
better error handling for overlong srcon commands

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

10 years agoadding "srcon" protocol, and new cvars:
divverent [Thu, 9 Apr 2009 07:30:53 +0000 (07:30 +0000)]
adding "srcon" protocol, and new cvars:

rcon_secure - if enabled, client sends srcon requests instead of rcon, and server ONLY accepts secure (HMAC-MD4) rcon.
rcon_secure_maxdiff - maximum clock difference between srcon client and server in seconds (is used to protect against replay attacks)

In srcon, the command is included into the hashing, so one can still sniff the command and its replies - but what an attacker can't do in srcon is sniff the password, or change the command over the wire. There is still limited replaying potential (within 15 seconds, the command can be replayed), but I don't think this can cause much harm.

TODO: add some way to FORCE rcon_secure to be 1, as currently a malicious server could stuffcmd("rcon_secure 0\nrcon ...") and then issue a rcon command to get the password.

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

10 years agotiny fix regarding too long keys
divverent [Thu, 9 Apr 2009 06:29:30 +0000 (06:29 +0000)]
tiny fix regarding too long keys

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

10 years agoAdd my own HMAC implementation (verified using the test vectors). Planning to use...
divverent [Thu, 9 Apr 2009 06:23:27 +0000 (06:23 +0000)]
Add my own HMAC implementation (verified using the test vectors). Planning to use HMAC-MD4 for an alternate rcon authentication.

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

10 years agoFix spurious error message in CL_Locs_FreeNode - ID: 2742143
divverent [Thu, 9 Apr 2009 05:39:54 +0000 (05:39 +0000)]
Fix spurious error message in CL_Locs_FreeNode - ID: 2742143

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

10 years agodraw loading bar at 100% alpha again
divverent [Tue, 7 Apr 2009 12:47:49 +0000 (12:47 +0000)]
draw loading bar at 100% alpha again

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

10 years agopitch inversion in gettaginfo: also do the mod_alias check on the client
divverent [Tue, 7 Apr 2009 05:14:38 +0000 (05:14 +0000)]
pitch inversion in gettaginfo: also do the mod_alias check on the client

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

10 years agocode-only change of the loading screen, no visual change
divverent [Mon, 6 Apr 2009 14:37:50 +0000 (14:37 +0000)]
code-only change of the loading screen, no visual change

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

10 years agoagain a slight visual improvement(?) of the loading bar
divverent [Mon, 6 Apr 2009 14:31:46 +0000 (14:31 +0000)]
again a slight visual improvement(?) of the loading bar

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

10 years agoMem_Free being passed NULL should be a warning, not a hard error
havoc [Mon, 6 Apr 2009 12:50:30 +0000 (12:50 +0000)]
Mem_Free being passed NULL should be a warning, not a hard error

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

10 years agofix a crash if a model has no vertices
havoc [Mon, 6 Apr 2009 12:44:41 +0000 (12:44 +0000)]
fix a crash if a model has no vertices

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

10 years agofix the name (DOWNLOADPROGRESS -> LOADPROGRESS)
divverent [Sun, 5 Apr 2009 17:56:03 +0000 (17:56 +0000)]

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

10 years agofix weight of worldmodel init
divverent [Sun, 5 Apr 2009 17:55:23 +0000 (17:55 +0000)]
fix weight of worldmodel init

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

10 years agograceful handling of stack underflows, or host_abortframe, during loading
divverent [Sun, 5 Apr 2009 10:53:43 +0000 (10:53 +0000)]
graceful handling of stack underflows, or host_abortframe, during loading

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

10 years agoenable nonpoweroftwo support again (accidentalyl had it && 0'ed for testing)
divverent [Sun, 5 Apr 2009 10:34:39 +0000 (10:34 +0000)]
enable nonpoweroftwo support again (accidentalyl had it && 0'ed for testing)

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

10 years agoloading screen: properly handle the back buffer, by using a copy-to-texture of the...
divverent [Sun, 5 Apr 2009 10:32:23 +0000 (10:32 +0000)]
loading screen: properly handle the back buffer, by using a copy-to-texture of the previous screen as background

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

10 years agoforce screen clear when showing loading plaque
divverent [Sun, 5 Apr 2009 10:10:15 +0000 (10:10 +0000)]
force screen clear when showing loading plaque

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

10 years agofix YUV tables
divverent [Sun, 5 Apr 2009 09:51:24 +0000 (09:51 +0000)]
fix YUV tables

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

10 years agomore loading screen improvements (weighting for different content types; don't update...
divverent [Sat, 4 Apr 2009 21:04:12 +0000 (21:04 +0000)]
more loading screen improvements (weighting for different content types; don't update too often for keepalives; only show model name)

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

10 years agoalso enter the event loop during Q3 map load... should prevent Vista's not responding...
divverent [Sat, 4 Apr 2009 20:49:12 +0000 (20:49 +0000)]
also enter the event loop during Q3 map load... should prevent Vista's not responding thing even on mikeeusa maps

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

10 years agofix tiny typo
divverent [Sat, 4 Apr 2009 20:41:45 +0000 (20:41 +0000)]
fix tiny typo

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

10 years ago- fix Q3 shaders coming from a curled pk3
divverent [Sat, 4 Apr 2009 20:40:38 +0000 (20:40 +0000)]
- fix Q3 shaders coming from a curled pk3
- drawing a black bar below the download bar to make sure

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

10 years agohopefully fix the crash issue on windows by hitting esc during loading by ignoring...
divverent [Sat, 4 Apr 2009 20:08:43 +0000 (20:08 +0000)]
hopefully fix the crash issue on windows by hitting esc during loading by ignoring all key presses during loading plaque

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

10 years agofix crash when playing some demos
divverent [Sat, 4 Apr 2009 20:01:58 +0000 (20:01 +0000)]
fix crash when playing some demos

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

10 years agofurther loading screen improvement
divverent [Sat, 4 Apr 2009 19:31:33 +0000 (19:31 +0000)]
further loading screen improvement

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

10 years agodon't draw loading plaque on dedicated server :(
divverent [Sat, 4 Apr 2009 15:59:11 +0000 (15:59 +0000)]
don't draw loading plaque on dedicated server :(

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

10 years agoexperiemnt: call the event loop from loading plaque update. Does this fix the problem...
divverent [Sat, 4 Apr 2009 15:56:10 +0000 (15:56 +0000)]
experiemnt: call the event loop from loading plaque update. Does this fix the problems on Vista?

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

10 years agomake Quake start again :P
divverent [Sat, 4 Apr 2009 15:53:31 +0000 (15:53 +0000)]
make Quake start again :P

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

10 years agomore loading screen stuff, now shows loading screen for connecting clients with progr...
divverent [Sat, 4 Apr 2009 15:50:31 +0000 (15:50 +0000)]
more loading screen stuff, now shows loading screen for connecting clients with progress indicator

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

10 years agoa nice improvement to the loading plaque: displaying the name of what's being loaded
divverent [Sat, 4 Apr 2009 15:05:38 +0000 (15:05 +0000)]
a nice improvement to the loading plaque: displaying the name of what's being loaded

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

10 years agoit is now possible to have multiple map models loaded at once - removed
havoc [Sat, 4 Apr 2009 14:53:35 +0000 (14:53 +0000)]
it is now possible to have multiple map models loaded at once - removed
the isworldmodel flag, and submodel searches now use the mapname as a
second search key so submodels from multiple maps can coexist in memory
this is a cleanup that I had wanted to do for a long time...
added special modeldecompile support for submodels, they should now save
to a name based on the current map as well as the submodel number

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

10 years agomove csqc_progdata and csqc_progdata_deflated from sv to svs to fix a memory leak
divverent [Sat, 4 Apr 2009 13:42:09 +0000 (13:42 +0000)]
move csqc_progdata and csqc_progdata_deflated from sv to svs to fix a memory leak

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

10 years agofix memory leaks in server csqc
divverent [Sat, 4 Apr 2009 13:02:13 +0000 (13:02 +0000)]
fix memory leaks in server csqc

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

10 years agofix a memory leak in WriteImage
divverent [Sat, 4 Apr 2009 12:48:05 +0000 (12:48 +0000)]
fix a memory leak in WriteImage

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

10 years agoupdate crosshair slider
sajt [Sat, 4 Apr 2009 12:07:08 +0000 (12:07 +0000)]
update crosshair slider

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

10 years agodon't apply host_sleep when in a timedemo
havoc [Sat, 4 Apr 2009 07:52:18 +0000 (07:52 +0000)]
don't apply host_sleep when in a timedemo

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

10 years agoadded host_sleep cvar, defaults to 1 millisecond wait each frame, this
havoc [Sat, 4 Apr 2009 07:50:42 +0000 (07:50 +0000)]
added host_sleep cvar, defaults to 1 millisecond wait each frame, this
seems to have no impact on fps on my windows and Linux machines but
reduces cpu usage

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

10 years agochanged r_speeds glFinish to only occur when set to 2, not 1 or 3
havoc [Sat, 4 Apr 2009 07:49:18 +0000 (07:49 +0000)]
changed r_speeds glFinish to only occur when set to 2, not 1 or 3

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

10 years agofix severe animation bug with single-frame framegroups in zym models
havoc [Thu, 2 Apr 2009 09:13:09 +0000 (09:13 +0000)]
fix severe animation bug with single-frame framegroups in zym models
slight tweak to framegroup interpolation in zym models (restored some
epsilon checks)

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

10 years agoreset rsurface.entity in a couple more cases
havoc [Thu, 2 Apr 2009 09:11:15 +0000 (09:11 +0000)]
reset rsurface.entity in a couple more cases
fixed entity count on r_speeds - don't count models twice

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

10 years agofix the NaN checks
divverent [Thu, 2 Apr 2009 07:10:06 +0000 (07:10 +0000)]
fix the NaN checks

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

10 years agochanged sv_masterextra cvars back to IP addresses to avoid gethostbyname
havoc [Wed, 1 Apr 2009 19:33:04 +0000 (19:33 +0000)]
changed sv_masterextra cvars back to IP addresses to avoid gethostbyname
delays on startup of Nexuiz

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

10 years agoreplaced sv_clmovement_waitforinput with sv_clmovement_inputtimeout
havoc [Wed, 1 Apr 2009 18:16:13 +0000 (18:16 +0000)]
replaced sv_clmovement_waitforinput with sv_clmovement_inputtimeout
which takes a timeout inseconds rather than frames, this makes
sys_ticrate safer to modify in Nexuiz (which has a low cl_netfps that
breaks with a rapid sys_ticrate if the administrator tries that)

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

10 years agoturn off exact specular math by default (it's better for fps, and sometimes looks...
divverent [Wed, 1 Apr 2009 18:10:24 +0000 (18:10 +0000)]
turn off exact specular math by default (it's better for fps, and sometimes looks less weird)

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

10 years agoreset rsurface.entity to NULL after each entity is rendered
havoc [Wed, 1 Apr 2009 17:58:29 +0000 (17:58 +0000)]
reset rsurface.entity to NULL after each entity is rendered

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

10 years agofix messed up r_hdr bloom rendering (wasn't setting view dimensions)
havoc [Wed, 1 Apr 2009 14:10:38 +0000 (14:10 +0000)]
fix messed up r_hdr bloom rendering (wasn't setting view dimensions)

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

10 years agoset rsurface.entity correctly before calling R_GetCurrentTexture
havoc [Wed, 1 Apr 2009 13:56:23 +0000 (13:56 +0000)]
set rsurface.entity correctly before calling R_GetCurrentTexture

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

10 years agomake cvar* functions unable to retrieve private cvars
divverent [Wed, 1 Apr 2009 12:52:45 +0000 (12:52 +0000)]
make cvar* functions unable to retrieve private cvars

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

10 years agoslightly more exact "exact specular math", prevents white dots on a mikeeusa map
divverent [Wed, 1 Apr 2009 11:13:50 +0000 (11:13 +0000)]
slightly more exact "exact specular math", prevents white dots on a mikeeusa map

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

10 years agoadded extension names for DP_GFX_MODEL_INTERPOLATION and
havoc [Mon, 30 Mar 2009 15:29:36 +0000 (15:29 +0000)]
added extension names for DP_GFX_MODEL_INTERPOLATION and

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

10 years agoreworked animation interpolation code - entity_render_t now has
havoc [Mon, 30 Mar 2009 15:22:57 +0000 (15:22 +0000)]
reworked animation interpolation code - entity_render_t now has
framegroupblend[] instead of frame1/2/1time/2time/framelerp fields
implemented csqc 4-way frame interpolation (lerpfrac2 is inferred based
on the sum of lerpfrac+lerpfrac3+lerpfrac4, so it remains compatible)

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

10 years agofix a use of tempmempool to be loadmodel->mempool
havoc [Mon, 30 Mar 2009 05:35:50 +0000 (05:35 +0000)]
fix a use of tempmempool to be loadmodel->mempool

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

10 years agocompute sorted surface list at load of each model - this tripled
havoc [Sun, 29 Mar 2009 13:29:01 +0000 (13:29 +0000)]
compute sorted surface list at load of each model - this tripled
framerates in some outdoor q1bsp maps
cleaned up water rendering setup code so it at least makes sense now
model lighting is not computed for unseen models (major fps increase in
some q1bsp maps)
added an unfinished OBJ model loader (not enabled)

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

10 years agoupdated project files to include cap_avi.c and cap_ogg.c
havoc [Sun, 29 Mar 2009 13:23:50 +0000 (13:23 +0000)]
updated project files to include cap_avi.c and cap_ogg.c
note: these are MSVC++ 2008 files - I don't have 2005

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

10 years agosame fix for csqc
divverent [Fri, 27 Mar 2009 12:31:04 +0000 (12:31 +0000)]
same fix for csqc

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

10 years agoproperly let sounds come out of attached entities (currently for svqc only)
divverent [Fri, 27 Mar 2009 11:57:59 +0000 (11:57 +0000)]
properly let sounds come out of attached entities (currently for svqc only)

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

10 years agoonly enable nonpoweroftwo textures if GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB > 0 ...
divverent [Thu, 26 Mar 2009 06:48:16 +0000 (06:48 +0000)]
only enable nonpoweroftwo textures if GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB > 0 (as radeon HDs software emulate some use cases of nonpoweroftwo textures, e.g. repeating ones)

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

10 years agomake r_showtris no longer use glVertex
divverent [Wed, 25 Mar 2009 13:38:15 +0000 (13:38 +0000)]
make r_showtris no longer use glVertex
same should be done to shownormals etc., but this would get more complex

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

10 years agovariable name fixes only, no change in behaviour
divverent [Mon, 23 Mar 2009 18:16:30 +0000 (18:16 +0000)]
variable name fixes only, no change in behaviour

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

10 years agooops, move the print for that string upwards, as other code there uses va() too
divverent [Mon, 23 Mar 2009 18:15:50 +0000 (18:15 +0000)]
oops, move the print for that string upwards, as other code there uses va() too

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

10 years agoin PRVM state dumps, also dump a special extra string if prvm_backtraceforwarnings...
divverent [Mon, 23 Mar 2009 18:11:30 +0000 (18:11 +0000)]
in PRVM state dumps, also dump a special extra string if prvm_backtraceforwarnings = 1 that can be specified by other code
currently, this is used to be able to track down the invalid tempstrings in savegame saving

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

10 years agolibcurl: if a resume ended up with an invalid pack, redownload the FULL pack
divverent [Mon, 23 Mar 2009 13:58:24 +0000 (13:58 +0000)]
libcurl: if a resume ended up with an invalid pack, redownload the FULL pack

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

10 years agoproject file to build SDL executives
motorsep [Sun, 22 Mar 2009 20:05:29 +0000 (20:05 +0000)]
project file to build SDL executives

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

10 years agochange names of functions, and add comments.
divverent [Sun, 22 Mar 2009 19:51:44 +0000 (19:51 +0000)]
change names of functions, and add comments.

The code is mathematically correct now, I added a proof of the missing link:
quadratic spline area = exactly 2/3 * area of the control points triangle!

The actual subdivisions stayed invariant, just the names of the functions make
more sense now.

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

10 years agocurl: delete the downloaded pk3 if adding it failed
divverent [Sun, 22 Mar 2009 19:31:07 +0000 (19:31 +0000)]
curl: delete the downloaded pk3 if adding it failed

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

10 years agoshow correct percentage when resuming
divverent [Sun, 22 Mar 2009 19:26:19 +0000 (19:26 +0000)]
show correct percentage when resuming

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

10 years agoDP_QC_GETTIME
divverent [Sat, 21 Mar 2009 22:09:45 +0000 (22:09 +0000)]

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

10 years agochange the model of curves approximation to one that
divverent [Sat, 21 Mar 2009 21:45:12 +0000 (21:45 +0000)]
change the model of curves approximation to one that
a) almost matches the previous one, and
b) makes more sense, mathematically
now the inexactness of a patch is defined as the maximum over the inexactness of its quadratic splines;
the inexactness of such a quadratic spline is defined as the area between the spline and the line between its end points;
as that area is hard to calculate, the triangle area of the three control points is taken instead (which obviously is larger than the area between spline and the line between the end points, so this actually is a pessimistic approach to get some nicely defined tesselation)

not much should change for the user, though, but flat patches are now properly detected and handled

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

10 years agofix warning
divverent [Thu, 19 Mar 2009 11:38:59 +0000 (11:38 +0000)]
fix warning

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