]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
16 years agoBlub's keyboard handling fixes (makes UP events go to the same handler as the corresp...
divverent [Tue, 15 Jul 2008 15:23:26 +0000 (15:23 +0000)]
Blub's keyboard handling fixes (makes UP events go to the same handler as the corresponding DOWN event, and fix up the ASCII code in UP events for SDL)

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

16 years agoenable XkbSetDetectableAutoRepeat (TODO check if weird systems like Solaris support...
divverent [Tue, 15 Jul 2008 15:22:51 +0000 (15:22 +0000)]
enable XkbSetDetectableAutoRepeat (TODO check if weird systems like Solaris support this, if not, ifdef it out for these)

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

16 years agocompile fix
divverent [Tue, 15 Jul 2008 13:38:19 +0000 (13:38 +0000)]
compile fix

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

16 years agomove the -1 setting of csqc_* to a better place (argh...)
divverent [Tue, 15 Jul 2008 11:33:05 +0000 (11:33 +0000)]
move the -1 setting of csqc_* to a better place (argh...)

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

16 years agoand move the declaration for CL_VM_Shutdown up
divverent [Tue, 15 Jul 2008 10:48:51 +0000 (10:48 +0000)]
and move the declaration for CL_VM_Shutdown up

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

16 years agocall CSQC_Shutdown between levels too!
divverent [Tue, 15 Jul 2008 10:47:48 +0000 (10:47 +0000)]
call CSQC_Shutdown between levels too!

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

16 years agofix wrong cvar name
divverent [Tue, 15 Jul 2008 09:15:22 +0000 (09:15 +0000)]
fix wrong cvar name

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

16 years agoadd missing var
divverent [Tue, 15 Jul 2008 09:11:08 +0000 (09:11 +0000)]
add missing var

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

16 years agosmall optimization to the leak check, to mark the entities faster
divverent [Tue, 15 Jul 2008 08:19:43 +0000 (08:19 +0000)]
small optimization to the leak check, to mark the entities faster

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

16 years agoprvm_leaktest - leak detector for QC objects (all but Gecko instances at the moment)
divverent [Tue, 15 Jul 2008 07:55:04 +0000 (07:55 +0000)]
prvm_leaktest - leak detector for QC objects (all but Gecko instances at the moment)
For entities, it uses a marking approach

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

16 years agofix out of range indices found by [-z-]
divverent [Mon, 14 Jul 2008 13:17:47 +0000 (13:17 +0000)]
fix out of range indices found by [-z-]

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

16 years agofix return value of FS_WhichPack to NOT include the -basedir
divverent [Mon, 14 Jul 2008 10:48:13 +0000 (10:48 +0000)]
fix return value of FS_WhichPack to NOT include the -basedir

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

16 years agopreserve host_client during rcon (should fix crash for rcon restart)
divverent [Sun, 13 Jul 2008 16:37:14 +0000 (16:37 +0000)]
preserve host_client during rcon (should fix crash for rcon restart)

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

16 years agoload the JPEG dll when needed
divverent [Sat, 12 Jul 2008 14:46:43 +0000 (14:46 +0000)]
load the JPEG dll when needed

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

16 years agoseems like it is better to use smaller sizes there
divverent [Fri, 11 Jul 2008 11:58:11 +0000 (11:58 +0000)]
seems like it is better to use smaller sizes there

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

16 years agoadding two new extensions: DP_QC_WHICHPACK (identify a pk3 containing a file), and...
divverent [Fri, 11 Jul 2008 10:14:59 +0000 (10:14 +0000)]
adding two new extensions: DP_QC_WHICHPACK (identify a pk3 containing a file), and DP_QC_WRITEIMAGE (writes a small low quality JPEG image from svqc to csqc)

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

16 years agotracked down another size check div0 left in
havoc [Thu, 10 Jul 2008 19:33:59 +0000 (19:33 +0000)]
tracked down another size check div0 left in

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

16 years agoremove debugging code that was breaking skeletal model formats other
havoc [Thu, 10 Jul 2008 08:05:45 +0000 (08:05 +0000)]
remove debugging code that was breaking skeletal model formats other
than psk, and was not meant to be committed

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

16 years agoneeded builtins for fonts in CSQC
divverent [Thu, 10 Jul 2008 07:10:34 +0000 (07:10 +0000)]
needed builtins for fonts in CSQC

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

16 years agoCvar sys_usenoclockbutbenchmark for the dedicated server. Replaces the regular clock...
divverent [Wed, 9 Jul 2008 19:27:26 +0000 (19:27 +0000)]
Cvar sys_usenoclockbutbenchmark for the dedicated server. Replaces the regular clock by a simulated one, for server code benchmarking with bots.

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

16 years agochanged the Sys_Error to a Con_Printf. LordHavoc, please check if the equation REALLY...
divverent [Tue, 8 Jul 2008 17:41:08 +0000 (17:41 +0000)]
changed the Sys_Error to a Con_Printf. LordHavoc, please check if the equation REALLY is right - this errors out for e.g. lurk.zym in Nexuiz

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

16 years agomake the weird != error message nonfatal and developer-only if it just hints to super...
divverent [Tue, 8 Jul 2008 16:15:27 +0000 (16:15 +0000)]
make the weird != error message nonfatal and developer-only if it just hints to superfluous data in the model; only abort if it hints to an overrun. Haven't checked the actual equation though. Please report if the problem is fixed.

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

16 years agopatch from KrimZon adding DP_QC_ENTITYDATA extension
havoc [Mon, 7 Jul 2008 09:21:46 +0000 (09:21 +0000)]
patch from KrimZon adding DP_QC_ENTITYDATA extension

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

16 years agoan attempt at optimizing msurface_t dlight_cache checks by moving them
havoc [Sat, 5 Jul 2008 07:31:46 +0000 (07:31 +0000)]
an attempt at optimizing msurface_t dlight_cache checks by moving them
to a separate array
added support for a Q3BSP format variant

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

16 years agochanged default of r_depthfirst to 0, because in general it's a
havoc [Sat, 5 Jul 2008 07:29:11 +0000 (07:29 +0000)]
changed default of r_depthfirst to 0, because in general it's a
performance loss rather than a gain

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

16 years agofix an error and a warning with my last commit
havoc [Sun, 29 Jun 2008 21:27:56 +0000 (21:27 +0000)]
fix an error and a warning with my last commit

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

16 years agosplit out combined alloc for psk model data to make it easier to verify
havoc [Sun, 29 Jun 2008 21:12:29 +0000 (21:12 +0000)]
split out combined alloc for psk model data to make it easier to verify
that the combined alloc size is correct

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

16 years agodeclare local variables properly
havoc [Sun, 29 Jun 2008 20:22:10 +0000 (20:22 +0000)]
declare local variables properly

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

16 years agofix crash in keys.c clipboard handling
divverent [Sat, 28 Jun 2008 15:47:26 +0000 (15:47 +0000)]
fix crash in keys.c clipboard handling

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

16 years agosync console command execution to the server timer or the client timer
havoc [Thu, 26 Jun 2008 02:41:07 +0000 (02:41 +0000)]
sync console command execution to the server timer or the client timer
depending on whether the server is running (previously when playing
online it would execute them on every main loop, which could mess up the
timing of multiple impulses in sequence)

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

16 years agoalways send a packet when an impulse is used, regardless of the
havoc [Thu, 26 Jun 2008 02:38:33 +0000 (02:38 +0000)]
always send a packet when an impulse is used, regardless of the
cl_netimmediatebuttons cvar

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

16 years agofix two warnings
havoc [Thu, 26 Jun 2008 02:35:36 +0000 (02:35 +0000)]
fix two warnings

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

16 years agoAdd a new command "infobar" to temporarily display something in the infobar.
divverent [Wed, 25 Jun 2008 18:03:21 +0000 (18:03 +0000)]
Add a new command "infobar" to temporarily display something in the infobar.
Useful for stuff like subtitles.

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

16 years agoin "bf", make alpha and alphafade optional (if left out, they will default to the...
divverent [Wed, 25 Jun 2008 17:39:15 +0000 (17:39 +0000)]
in "bf", make alpha and alphafade optional (if left out, they will default to the usual "bf" values)

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

16 years ago"bf" now optionally takes arguments: red green blue alpha alphafade
divverent [Wed, 25 Jun 2008 17:35:38 +0000 (17:35 +0000)]
"bf" now optionally takes arguments: red green blue alpha alphafade

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

16 years agopatch from Blub\0 to fix InfoString_SetValue (my dpsnprintf size was
havoc [Mon, 23 Jun 2008 12:48:56 +0000 (12:48 +0000)]
patch from Blub\0 to fix InfoString_SetValue (my dpsnprintf size was
wrong)

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

16 years agothanks to Willis for contributing a VS2005 x64 build target
havoc [Thu, 19 Jun 2008 09:34:37 +0000 (09:34 +0000)]
thanks to Willis for contributing a VS2005 x64 build target

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

16 years agoSupport file symlinks inside pk3 files. Directory symlinks, as well as symlinks with...
divverent [Thu, 19 Jun 2008 08:02:30 +0000 (08:02 +0000)]
Support file symlinks inside pk3 files. Directory symlinks, as well as symlinks with ../ not at their start, are not supported.

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

16 years agouse %127s in the sscanf
havoc [Tue, 17 Jun 2008 11:13:11 +0000 (11:13 +0000)]
use %127s in the sscanf

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

16 years agofix crash in rtlights loader when compiled with VS2005 (I forgot that
havoc [Tue, 17 Jun 2008 11:09:52 +0000 (11:09 +0000)]
fix crash in rtlights loader when compiled with VS2005 (I forgot that
does use a %s in an sscanf)

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

16 years agochanged build targets to all be in the darkplaces directory
havoc [Tue, 17 Jun 2008 11:07:40 +0000 (11:07 +0000)]
changed build targets to all be in the darkplaces directory

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

16 years agofixed all VS2005 deprecated function warnings
havoc [Tue, 17 Jun 2008 10:46:24 +0000 (10:46 +0000)]
fixed all VS2005 deprecated function warnings
found one actual buffer overrun problem in GetMapList (map name
completion was using sprintf with a 64 character buffer, which is EASILY
overflowed)
added VS2005 projects

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

16 years agochanged a number of sprintf's to dpsnprintf and removed the TODO
havoc [Tue, 17 Jun 2008 10:17:29 +0000 (10:17 +0000)]
changed a number of sprintf's to dpsnprintf and removed the TODO
comments for doing this

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

16 years agohush a warning in Dev-C++
havoc [Tue, 17 Jun 2008 10:17:04 +0000 (10:17 +0000)]
hush a warning in Dev-C++

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

16 years agofixed the .dev file for dedicated server
havoc [Tue, 17 Jun 2008 10:14:19 +0000 (10:14 +0000)]
fixed the .dev file for dedicated server

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

16 years agoadded gl_gecko.[ch] and gl_dyntexture.[ch] dependencies
havoc [Tue, 17 Jun 2008 09:12:44 +0000 (09:12 +0000)]
added gl_gecko.[ch] and gl_dyntexture.[ch] dependencies
also added some lib files and removed the base ones

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

16 years agoalso reject time stepping > 30 minutes (this threshold is < 1 hour to reject daylight...
divverent [Sun, 15 Jun 2008 14:52:22 +0000 (14:52 +0000)]
also reject time stepping > 30 minutes (this threshold is < 1 hour to reject daylight saving time changes, but > any "typical" load time of a map)

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

16 years agonew cvar sys_useclockgettime (default 0) that makes DP use clock_gettime as time...
divverent [Sun, 15 Jun 2008 14:31:11 +0000 (14:31 +0000)]
new cvar sys_useclockgettime (default 0) that makes DP use clock_gettime as time source (should fix bad timing on Solaris, and some Xen oddity). Only supported in the Solaris, Linux and BSD target.

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

16 years agoalso put svn revision (svnversion(1)) and build type into the version string
divverent [Wed, 11 Jun 2008 11:20:33 +0000 (11:20 +0000)]
also put svn revision (svnversion(1)) and build type into the version string

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

16 years agoFixed compile error in MSVC6 (its SDK is missing a key #define)
sajt [Wed, 11 Jun 2008 02:15:05 +0000 (02:15 +0000)]
Fixed compile error in MSVC6 (its SDK is missing a key #define)

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

16 years agocheck if command is "remap" AFTER command is set to something!
havoc [Mon, 9 Jun 2008 07:49:13 +0000 (07:49 +0000)]
check if command is "remap" AFTER command is set to something!

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

16 years agoparticle palette is now derived from the loaded palette (this fixes bugs
havoc [Mon, 9 Jun 2008 07:08:20 +0000 (07:08 +0000)]
particle palette is now derived from the loaded palette (this fixes bugs
with .glow_trail colors not matching .glow_color colors when the palette
is replaced)

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

16 years agodo NOT Host_StartVideo for a simple "cd remap"
divverent [Sat, 7 Jun 2008 13:37:50 +0000 (13:37 +0000)]
do NOT Host_StartVideo for a simple "cd remap"

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

16 years agochanged bbox size for chase camera
motorsep [Thu, 5 Jun 2008 08:02:15 +0000 (08:02 +0000)]
changed bbox size for chase camera

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

16 years agoadd view_ofs before chase_active code, this should fix a bug in prophecy
havoc [Thu, 5 Jun 2008 07:41:03 +0000 (07:41 +0000)]
add view_ofs before chase_active code, this should fix a bug in prophecy
where the camera trace starts at the player's feet and glitches on
stairs

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

16 years agoadded support for Prophecy game and new cvar for chase cam
motorsep [Thu, 5 Jun 2008 07:35:13 +0000 (07:35 +0000)]
added support for Prophecy game and new cvar for chase cam

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

16 years agomake DP_SV_SPAWNFUNC_PREFIX an detectable extension
divverent [Sun, 1 Jun 2008 13:25:12 +0000 (13:25 +0000)]
make DP_SV_SPAWNFUNC_PREFIX an detectable extension

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

16 years agosome const fixes and type fixes found by gcc -combine
divverent [Sun, 1 Jun 2008 13:14:54 +0000 (13:14 +0000)]
some const fixes and type fixes found by gcc -combine

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

16 years agotiny DP extension: when a global named "require_spawnfunc_prefix" exists, ONLY spawn...
divverent [Sun, 1 Jun 2008 13:14:09 +0000 (13:14 +0000)]
tiny DP extension: when a global named "require_spawnfunc_prefix" exists, ONLY spawn using functions whose name starts with spawnfunc_. Helps keeping QC code clean, but should not break anything (Google found no existing code with a variable require_spawnfunc_prefix)

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

16 years agofix typo in r_textcontrast description
divverent [Wed, 28 May 2008 08:49:25 +0000 (08:49 +0000)]
fix typo in r_textcontrast description

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

16 years agofix fog for scaled models (affects Nexuiz flags)
divverent [Sat, 24 May 2008 17:49:59 +0000 (17:49 +0000)]
fix fog for scaled models (affects Nexuiz flags)

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

16 years agogit-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8311 d7cf8633-e32d-0410...
havoc [Fri, 23 May 2008 00:10:16 +0000 (00:10 +0000)]
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8311 d7cf8633-e32d-0410-b094-e92efae38249

16 years agosimplified failed cubemap handling
havoc [Thu, 22 May 2008 23:14:23 +0000 (23:14 +0000)]
simplified failed cubemap handling

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

16 years agodon't try to free r_texture_whitecube just because it's stored in one of
havoc [Thu, 22 May 2008 23:10:55 +0000 (23:10 +0000)]
don't try to free r_texture_whitecube just because it's stored in one of
the cubemap references

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

16 years agodon't try to send a svc_pointparticles or svc_trailparticles message if
havoc [Sun, 18 May 2008 09:28:11 +0000 (09:28 +0000)]
don't try to send a svc_pointparticles or svc_trailparticles message if
the effectnum is negative (such as the -1 returned by particleeffectnum
when it fails to find a match)

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

16 years agofix problem with glx mouse not grabbing in nexuiz menu
havoc [Sun, 18 May 2008 02:12:14 +0000 (02:12 +0000)]
fix problem with glx mouse not grabbing in nexuiz menu
fix glx mouse warp problem, now produces an extra xmotion event sent to
itself to indicate the warp happened before any real motions come in

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

16 years agoaudit of fullscreengrab in VID_SetMouse, getting rid of unnecessary
havoc [Sun, 18 May 2008 02:11:14 +0000 (02:11 +0000)]
audit of fullscreengrab in VID_SetMouse, getting rid of unnecessary
cases

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

16 years agofix return value of VM_strftime builtin, it was returning a string
havoc [Sun, 18 May 2008 01:36:14 +0000 (01:36 +0000)]
fix return value of VM_strftime builtin, it was returning a string
offset as a float, it must return it as an int for QC to work

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

16 years agorenamed VID_GrabMouse to VID_SetMouse as it now takes 3 parameters
havoc [Sat, 10 May 2008 12:47:28 +0000 (12:47 +0000)]
renamed VID_GrabMouse to VID_SetMouse as it now takes 3 parameters
(fullscreengrab, relative, hidecursor), this required reworking all the
implementations and the calls, but gives the correct behavior in all
cases

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

16 years agofixed bug where vid_dgamouse cvar broke support for absolute mouse
havoc [Sat, 10 May 2008 07:50:09 +0000 (07:50 +0000)]
fixed bug where vid_dgamouse cvar broke support for absolute mouse
positioning

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

16 years agowarp mouse pointer every time it moves off-center instead of just when
havoc [Sat, 10 May 2008 07:22:15 +0000 (07:22 +0000)]
warp mouse pointer every time it moves off-center instead of just when
it's halfway away from center, this hides the glitching that has been
reported, but the cause is still not understood

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

16 years agofixed drifting mouse pointer problems in menu
havoc [Thu, 8 May 2008 17:59:11 +0000 (17:59 +0000)]
fixed drifting mouse pointer problems in menu

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

16 years agodon't ungrab mouse in loading screens in fullscreen
havoc [Thu, 8 May 2008 17:58:03 +0000 (17:58 +0000)]
don't ungrab mouse in loading screens in fullscreen

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

16 years agofix nexuiz menu mouse input by resetting in_mouse_x/y variables in a
havoc [Thu, 8 May 2008 17:29:51 +0000 (17:29 +0000)]
fix nexuiz menu mouse input by resetting in_mouse_x/y variables in a
better place

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

16 years agosplit VM_getmousepos into client and menu versions because they need to
havoc [Thu, 8 May 2008 17:22:08 +0000 (17:22 +0000)]
split VM_getmousepos into client and menu versions because they need to
check different variables to decide whether to return window coordinates
or delta mouse motions

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

16 years agofixed several bugs with mouse grabbing
havoc [Thu, 8 May 2008 17:05:39 +0000 (17:05 +0000)]
fixed several bugs with mouse grabbing

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

16 years agoignore all potentially disruptive events when in fullscreen
havoc [Thu, 8 May 2008 16:34:05 +0000 (16:34 +0000)]
ignore all potentially disruptive events when in fullscreen

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

16 years agodefault in_client_mouse to true again to fix Nexuiz menu
havoc [Thu, 8 May 2008 16:20:25 +0000 (16:20 +0000)]
default in_client_mouse to true again to fix Nexuiz menu
added a comment in getmousepos about the fact it doesn't know how to
handle in_client_mouse

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

16 years agomenu.dat needs to use mouse grab by default
havoc [Thu, 8 May 2008 16:00:33 +0000 (16:00 +0000)]
menu.dat needs to use mouse grab by default

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

16 years agoimplemented support for turning off mousegrab in csqc (feature existed
havoc [Thu, 8 May 2008 09:10:10 +0000 (09:10 +0000)]
implemented support for turning off mousegrab in csqc (feature existed
but was buggy in Windows build and not implemented in others)
cleaned up menu mousegrab handling, among other mousegrab state issues

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

16 years agorenamed IN_Activate to VID_GrabMouse and made it a public function in
havoc [Thu, 8 May 2008 00:05:43 +0000 (00:05 +0000)]
renamed IN_Activate to VID_GrabMouse and made it a public function in
the VID API, this removed some shared logic from each VID_Finish
implementation, and allows disabling the mouse grab at the beginning of
a loading screen

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

16 years agoadded some checks for the possibility of a map having no portals
havoc [Wed, 7 May 2008 23:48:11 +0000 (23:48 +0000)]
added some checks for the possibility of a map having no portals

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

16 years agocentralized GL_VENDOR/GL_RENDERER/etc printing code
havoc [Wed, 7 May 2008 23:45:21 +0000 (23:45 +0000)]
centralized GL_VENDOR/GL_RENDERER/etc printing code

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

16 years agobugfix for svc_particle colors
havoc [Wed, 7 May 2008 23:38:15 +0000 (23:38 +0000)]
bugfix for svc_particle colors
changed stainmap colors

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

16 years agochanged default gl_vbo from 1 to 3 to try to avoid stalls on certain ATI
havoc [Wed, 7 May 2008 07:25:00 +0000 (07:25 +0000)]
changed default gl_vbo from 1 to 3 to try to avoid stalls on certain ATI
cards, does not seem to have any significant effect on NVIDIA
performance either way (1 is faster on Radeon HD though, if it works)

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

16 years agofix bug with rtlights on vertex texture blend surfaces (such as in
havoc [Sun, 4 May 2008 22:55:54 +0000 (22:55 +0000)]
fix bug with rtlights on vertex texture blend surfaces (such as in
pom.bsp) that was causing them to white out

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

16 years agofixes to "defer": Crash on Windows (non-ANSI C printf string), and order of execution...
divverent [Sun, 4 May 2008 15:32:45 +0000 (15:32 +0000)]
fixes to "defer": Crash on Windows (non-ANSI C printf string), and order of execution of defers at the same time

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

16 years agoremoved gl_workaround_mac_texmatrix cvar because it seems the entire
havoc [Sun, 4 May 2008 08:13:42 +0000 (08:13 +0000)]
removed gl_workaround_mac_texmatrix cvar because it seems the entire
problem was solved by moving glActiveTexture calls above glMatrixMode
calls - this may still be an Apple bug, but not an important one

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

16 years agoanother attempt at identifying mac texmatrix bug
havoc [Sun, 4 May 2008 06:43:20 +0000 (06:43 +0000)]
another attempt at identifying mac texmatrix bug

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

16 years agochanged gl_workaround_mac_texmatrix to additionally call
havoc [Sun, 4 May 2008 06:04:20 +0000 (06:04 +0000)]
changed gl_workaround_mac_texmatrix to additionally call
GL_ActiveTexture everywhere it calls GL_ClientActiveTexture

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

16 years agochanged behavior of gl_workaround_mac_texmatrix, reverting to previous
havoc [Sun, 4 May 2008 05:32:28 +0000 (05:32 +0000)]
changed behavior of gl_workaround_mac_texmatrix, reverting to previous
behavior (returning the texmatrix bugs), now the cvar causes a more
general change in behavior where all GL_ActiveTexture calls will also
call GL_ClientActiveTexture, this should make the bug easily toggleable
for debugging purposes

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

16 years agofurther attempt at workaround for Mac texmatrix bug,
havoc [Sat, 3 May 2008 11:05:32 +0000 (11:05 +0000)]
further attempt at workaround for Mac texmatrix bug,
gl_workaround_mac_texmatrix now has values in the range 0 to 7 with
different behaviors to try
eliminated GL_ClientActiveTexture function, now client active texture
always matches server active texture (in hopes of fixing Mac bug)

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

16 years agosanitize nicknames that start with a 0x01 or 0x02 (chat beep) by adding an extra...
divverent [Fri, 2 May 2008 11:09:57 +0000 (11:09 +0000)]
sanitize nicknames that start with a 0x01 or 0x02 (chat beep) by adding an extra ^7 at the beginning

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

16 years agore-add the multiplication by waterlevel for cls.protocol == PROTOCOL_QUAKEWORLD
divverent [Thu, 1 May 2008 07:47:10 +0000 (07:47 +0000)]
re-add the multiplication by waterlevel for cls.protocol == PROTOCOL_QUAKEWORLD

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

16 years agoremove weird multiplication of water friction by 1 (wet feet), 2 (swimming), 3 (subme...
divverent [Wed, 30 Apr 2008 20:53:49 +0000 (20:53 +0000)]
remove weird multiplication of water friction by 1 (wet feet), 2 (swimming), 3 (submerged), as sv_user.c (which Quake uses) does not do that and it DOES break prediction

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

16 years agoExtend rcon_restricted_commands to contain more complex patterns:
divverent [Sat, 26 Apr 2008 09:49:21 +0000 (09:49 +0000)]
Extend rcon_restricted_commands to contain more complex patterns:

- Wildcards are supported. A * matches EXACTLY one arg. ? never matches
  whitespace. * wildcards match AT LEAST one character.
- Multi-word patterns are supported - they then match EXACTLY the command.
- Single-word non-wildcard patterns still match if the first word of the command matches.

Currently, there is no way to enforce that a command is used ONLY without any args.
Also, wildcard expressions currently NEVER match a command with quotes, as quotes
could subvert the argument restrictions.

Examples:

  foo * bar * *
  - matches: foo XXX bar XXX XXX
  - does not match: foo bar XXX XXX, foo XXX bar XXX XXX XXX, foo XXX bar XXX

  foo
  - matches: foo, foo XXX, foo XXX XXX
  - does not match: foobar

  foo bar
  - matches: foo bar
  - does not match: foo bar baz

  foo*bar
  - matches: foo42bar, foo1bar
  - does not match: foobar, foo bar

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

16 years agoadded gl_vbo 3 mode (which does not use EBO when firsttriangle is
havoc [Wed, 23 Apr 2008 04:19:35 +0000 (04:19 +0000)]
added gl_vbo 3 mode (which does not use EBO when firsttriangle is
non-zero), just for performance testing

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

16 years agodownload system:
divverent [Tue, 22 Apr 2008 11:07:19 +0000 (11:07 +0000)]
download system:
- Nexuiz: only download csprogs using it for now; always put downloads in dlcache/
- other games: make CSQC always go into dlcache/

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

16 years agofix label sprites if r_waterstate.renderingscene
divverent [Tue, 22 Apr 2008 10:43:19 +0000 (10:43 +0000)]
fix label sprites if r_waterstate.renderingscene

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

16 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