15 years agoadded knownstrings_freeable array to prog struct so that attempts to free engine...
havoc [Wed, 29 Jun 2005 22:45:28 +0000 (22:45 +0000)]
added knownstrings_freeable array to prog struct so that attempts to free engine strings are detected and cause a PRVM_FreeString error (rather than a Mem_Free error)

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

15 years agodefault offsetmapping off (as it messes up model skins)
havoc [Tue, 28 Jun 2005 23:10:21 +0000 (23:10 +0000)]
default offsetmapping off (as it messes up model skins)
fixed permutation failure prints (now lists all 6 flags not just 4)

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

15 years ago374
havoc [Tue, 28 Jun 2005 22:29:47 +0000 (22:29 +0000)]

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

15 years ago-Added sv_playerphysicsqc to control whether the qc physics function is called (if...
black [Tue, 28 Jun 2005 21:09:58 +0000 (21:09 +0000)]
-Added sv_playerphysicsqc to control whether the qc physics function is called (if its available).
-Added support for loading LNO files (more to follow soon).
-The server now tries other ports (up to 100 above default) if the default port cant be bound.

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

15 years agopatch from christian holmberg to make XK_section key (I do not know what this is...
havoc [Tue, 28 Jun 2005 19:23:36 +0000 (19:23 +0000)]
patch from christian holmberg to make XK_section key (I do not know what this is) type ~ character for binds

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

15 years agoremoved r_editlights_rtlightssizescale and r_editlights_rtlightscolorscale cvars...
havoc [Tue, 28 Jun 2005 05:59:39 +0000 (05:59 +0000)]
removed r_editlights_rtlightssizescale and r_editlights_rtlightscolorscale cvars (now they behave as if they were both 1.0)
added r_editlights_edit commands radiusscale sizescale and colorscale (use these to fix old-format .rtlights files)

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

15 years agoincreased server browser viewlist limit (was 128) to match the serverlist limit ...
havoc [Mon, 27 Jun 2005 23:07:28 +0000 (23:07 +0000)]
increased server browser viewlist limit (was 128) to match the serverlist limit (2048)

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

15 years ago-"add color code to start of chat message to prevent nick colors from messing up...
black [Sun, 26 Jun 2005 19:56:39 +0000 (19:56 +0000)]
-"add color code to start of chat message to prevent nick colors from messing up the text color"
-updated a few todo items.

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

15 years agoremoved "%s changed model to %s" message on .playermodel changes (it was unintended)
havoc [Sun, 26 Jun 2005 00:51:03 +0000 (00:51 +0000)]
removed "%s changed model to %s" message on .playermodel changes (it was unintended)

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

15 years agoq3 shader parser was not supporting alphatest (promoted to alphablend) without trans...
havoc [Sat, 25 Jun 2005 21:51:35 +0000 (21:51 +0000)]
q3 shader parser was not supporting alphatest (promoted to alphablend) without trans parm

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

15 years agoremoved SV_SetOnGround, this cures the bunnyhopping bug (failure to jump again when...
havoc [Wed, 22 Jun 2005 17:43:32 +0000 (17:43 +0000)]
removed SV_SetOnGround, this cures the bunnyhopping bug (failure to jump again when hitting the ground)

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

15 years agochanged a lot of Host_Error calls to Con_Printf or Sys_Error according to severity
havoc [Wed, 22 Jun 2005 17:35:17 +0000 (17:35 +0000)]
changed a lot of Host_Error calls to Con_Printf or Sys_Error according to severity

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

15 years agochanged most Sys_Error calls to Con_Printf with appropriate error returns
havoc [Mon, 20 Jun 2005 01:50:29 +0000 (01:50 +0000)]
changed most Sys_Error calls to Con_Printf with appropriate error returns

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

15 years agoremoved winding.[ch] files from dsp files
havoc [Mon, 20 Jun 2005 01:35:52 +0000 (01:35 +0000)]
removed winding.[ch] files from dsp files

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

15 years agoremoved winding.[ch] as they were not used
havoc [Mon, 20 Jun 2005 01:30:33 +0000 (01:30 +0000)]
removed winding.[ch] as they were not used

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

15 years agoremoved two unused Key_Event implementations (which let me remove some unused variabl...
havoc [Sun, 19 Jun 2005 23:52:18 +0000 (23:52 +0000)]
removed two unused Key_Event implementations (which let me remove some unused variables like menukeys and consolekeys to save several K of memory), cleaned up keys.h externs

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

15 years agochanged keydown[] from unsigned int holding key repeat count to qbyte holding status...
havoc [Sun, 19 Jun 2005 23:02:51 +0000 (23:02 +0000)]
changed keydown[] from unsigned int holding key repeat count to qbyte holding status (0 = up, 1 = down, 2 = repeating) to save 3K of memory

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

15 years agoremoved keydown[] and renamed key_repeats[] to keydown[] (overall the code looks...
havoc [Sun, 19 Jun 2005 22:56:43 +0000 (22:56 +0000)]
removed keydown[] and renamed key_repeats[] to keydown[] (overall the code looks the same, but this saves 1K of memory)

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

15 years agocleaned up Key_Event, this changed toggleconsole bind behavior (it now only works...
havoc [Sun, 19 Jun 2005 19:04:00 +0000 (19:04 +0000)]
cleaned up Key_Event, this changed toggleconsole bind behavior (it now only works while in key_game mode, like all other normal binds)

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

15 years agoremoved shift_down variable, use keydown[K_SHIFT] instead
havoc [Sun, 19 Jun 2005 17:52:13 +0000 (17:52 +0000)]
removed shift_down variable, use keydown[K_SHIFT] instead

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

15 years agobetter detection of model load failures in viewmodel command
havoc [Sun, 19 Jun 2005 17:47:30 +0000 (17:47 +0000)]
better detection of model load failures in viewmodel command

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

15 years agodon't complain about missing bolt3/beam models
havoc [Sun, 19 Jun 2005 17:46:59 +0000 (17:46 +0000)]
don't complain about missing bolt3/beam models

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

15 years agoremoved 3 unused variables
havoc [Sun, 19 Jun 2005 17:42:47 +0000 (17:42 +0000)]
removed 3 unused variables

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

15 years ago-Added support for 515]'s BX_COLOREDTEXT extension.
black [Sun, 19 Jun 2005 16:42:43 +0000 (16:42 +0000)]
-Added support for 515]'s BX_COLOREDTEXT extension.
-Changed fopen's and fclose's log ouput a bit (to include the prvm name)
-Fixed a stupid bug in the SV VM that caused it to crash on error.

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

15 years agoremoved CL_InitTEnts function, moved its contents (cl_sfx precaches) to CL_ParseServe...
havoc [Sun, 19 Jun 2005 01:10:38 +0000 (01:10 +0000)]
removed CL_InitTEnts function, moved its contents (cl_sfx precaches) to CL_ParseServerInfo
removed beam precaches from the beam parsing code to CL_ParseServerInfo so that the precaches are made each level (when it unloads models/sounds) rather than only once (ever!) during the game, this fixed crashes and rendering issues (using the wrong model) with lightning beams
renamed cl_sfx_ and cl_model_ from cl_ prefix to cl. prefix now that they are part of the per-level state

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

15 years agobefore calling SetNewParms qc function, set self to world to intentionally cause...
havoc [Sun, 19 Jun 2005 00:59:52 +0000 (00:59 +0000)]
before calling SetNewParms qc function, set self to world to intentionally cause errors with broken SetNewParms code in some mods

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

15 years agoremove unused frametime calculation
havoc [Sun, 19 Jun 2005 00:55:58 +0000 (00:55 +0000)]
remove unused frametime calculation

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

15 years agoreplace control characters (such as newline) with _ in savegame comments, this fixes...
havoc [Thu, 16 Jun 2005 22:43:37 +0000 (22:43 +0000)]
replace control characters (such as newline) with _ in savegame comments, this fixes loading savegames in 'dungeon.bsp' of The Ascension of Vigil, and probably some other maps that use newlines in their titles (nasty)

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

15 years agoFixed the embedded lhfont some more.
tomaz [Wed, 15 Jun 2005 16:26:54 +0000 (16:26 +0000)]
Fixed the embedded lhfont some more.

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

15 years agouse sdl-config --static-libs on Mac
havoc [Wed, 15 Jun 2005 03:54:14 +0000 (03:54 +0000)]
use sdl-config --static-libs on Mac

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

15 years agoAdded saving of gfx/generated_conchars.tga
tomaz [Wed, 15 Jun 2005 03:26:48 +0000 (03:26 +0000)]
Added saving of gfx/generated_conchars.tga

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

15 years agoprint a different fopen message if it failed
havoc [Wed, 15 Jun 2005 02:21:15 +0000 (02:21 +0000)]
print a different fopen message if it failed

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

15 years agoadded debug prints to FRIK_FILE fopen/fclose builtins
havoc [Wed, 15 Jun 2005 01:55:55 +0000 (01:55 +0000)]
added debug prints to FRIK_FILE fopen/fclose builtins

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

15 years agostrlwr does not exist on Linux
havoc [Tue, 14 Jun 2005 22:45:38 +0000 (22:45 +0000)]
strlwr does not exist on Linux

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

15 years ago-reconnect wont work if being called from the console (it never did but now
black [Tue, 14 Jun 2005 19:26:27 +0000 (19:26 +0000)]
-reconnect wont work if being called from the console (it never did but now
 it wont get you into this 'zombie' state).
-changed the severlist string compare function to convert all strings to
 lowercase before comparing.

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

15 years agoattempting to make darkplaces able to compile as 32bit on 64bit host systems (by...
havoc [Tue, 14 Jun 2005 17:52:20 +0000 (17:52 +0000)]
attempting to make darkplaces able to compile as 32bit on 64bit host systems (by feeding -m32 as CPUOPTIMIZATIONS on commandline)

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

15 years ago373
tomaz [Mon, 13 Jun 2005 16:25:12 +0000 (16:25 +0000)]

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

15 years agoAdded gl_picmip slider and r_restart button to Graphics menu ("Texture Quality" and...
tomaz [Mon, 13 Jun 2005 16:13:43 +0000 (16:13 +0000)]
Added gl_picmip slider and r_restart button to Graphics menu ("Texture Quality" and "Renderer Restart")

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

15 years agoadded -demo and -demolooponly options. -demo starts the wanted demo and then shuts...
tomaz [Mon, 13 Jun 2005 14:54:52 +0000 (14:54 +0000)]
added -demo and -demolooponly options. -demo starts the wanted demo and then shuts down the engine once done. -demolooponly does pretty mucht the same except it disables all keys but the escape key and makes escape key quit the engine.

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

15 years ago376
havoc [Mon, 13 Jun 2005 12:05:14 +0000 (12:05 +0000)]

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

15 years agofix two signed/unsigned mismatch warnings reported by Willis
havoc [Mon, 13 Jun 2005 01:18:00 +0000 (01:18 +0000)]
fix two signed/unsigned mismatch warnings reported by Willis

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

15 years agoFixed a VC runtime assertion caused by wishdir not being initialized when wishspeed...
black [Sun, 12 Jun 2005 16:34:03 +0000 (16:34 +0000)]
Fixed a VC runtime assertion caused by wishdir not being initialized when wishspeed equals zero.

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

15 years ago-The new Key_Event is enabled by default now and Ive added a check so the
black [Sat, 11 Jun 2005 18:49:09 +0000 (18:49 +0000)]
-The new Key_Event is enabled by default now and Ive added a check so the
console toggle char is only added to the message line or console input if it is
the color tag char.
-Some name changes of the colored string constants.

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

15 years agoIncreased maximum edict count to 4096
black [Sat, 11 Jun 2005 18:20:26 +0000 (18:20 +0000)]
Increased maximum edict count to 4096

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

15 years agoMissing ';' :(
black [Sat, 11 Jun 2005 18:12:42 +0000 (18:12 +0000)]
Missing ';' :(

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

15 years agoRewrote of DrawQ_ColoredString (fixing some bugs hopefully).
black [Sat, 11 Jun 2005 18:01:41 +0000 (18:01 +0000)]
Rewrote of DrawQ_ColoredString (fixing some bugs hopefully).

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

15 years agosplit CL_ClientMovement into CL_ClientMovement_Input (called each input packet) and...
havoc [Sat, 11 Jun 2005 16:42:02 +0000 (16:42 +0000)]
split CL_ClientMovement into CL_ClientMovement_Input (called each input packet) and CL_ClientMovement_Replay (called each frame) functions to cure a feedback loop that could freeze up a client with a full prediction queue (prediction became slower with each queue item, and the server was not affected by the slowness of the replay, so it could keep the client busy with an endless packet stream and the client would never catch up)

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

15 years agoBasic support for Q3's "getstatus" message, for a better integration with Q3 compatib...
molivier [Sat, 11 Jun 2005 13:12:43 +0000 (13:12 +0000)]
Basic support for Q3's "getstatus" message, for a better integration with Q3 compatible server browsers. Thanks to divVerent for an early version of this patch

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

15 years agochanged searchpath directories to have a trailing / (allowing %s%s instead of %s...
havoc [Sat, 11 Jun 2005 00:44:08 +0000 (00:44 +0000)]
changed searchpath directories to have a trailing / (allowing %s%s instead of %s/%s for more consistency)
fixed FS_Search to support empty paths (*.cfg and such), and use %s%s concatenation as the rest of the filesystem does, this required changing listdirectory slightly
some cleanup of the opendir implementation of listdirectory

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

15 years agosv_public now defaults to 0 except on dedicated servers
havoc [Sat, 11 Jun 2005 00:38:24 +0000 (00:38 +0000)]
sv_public now defaults to 0 except on dedicated servers
cleaned up Host_ServerOptions code significantly

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

15 years agoFixed direct compilation of subtargets (cl-release, sv-debug, ...)
molivier [Fri, 10 Jun 2005 07:04:14 +0000 (07:04 +0000)]
Fixed direct compilation of subtargets (cl-release, sv-debug, ...)

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

15 years agopatch from Zero_Dogg to fix a compile problem on Mandriva Linux
havoc [Thu, 9 Jun 2005 23:26:19 +0000 (23:26 +0000)]
patch from Zero_Dogg to fix a compile problem on Mandriva Linux

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

15 years agoFixed a typo in the BSD makefile
molivier [Thu, 9 Jun 2005 23:21:47 +0000 (23:21 +0000)]
Fixed a typo in the BSD makefile

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

15 years agoadded r_shadow_glsl_geforcefxlowquality cvar (automatically on if running a GeForce...
havoc [Thu, 9 Jun 2005 16:28:57 +0000 (16:28 +0000)]
added r_shadow_glsl_geforcefxlowquality cvar (automatically on if running a GeForce FX card) to use half floats instead of full floats where possible, and r_shadow_glsl_surfacenormalize cvar (slight quality improvement to bumpmapping)

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

15 years agoremove two unused variables
havoc [Thu, 9 Jun 2005 14:26:43 +0000 (14:26 +0000)]
remove two unused variables

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

15 years agoreplaced uses of VectorNormalizeFast with VectorNormalize as it was broken on x86_64...
havoc [Thu, 9 Jun 2005 11:57:24 +0000 (11:57 +0000)]
replaced uses of VectorNormalizeFast with VectorNormalize as it was broken on x86_64 (probably just because it used long * casts of floats) and was never much faster on modern CPUs anyway
made a lot of internal functions in portals.c static, and replaced two vector subtracts and a crossproduct with TriangleNormal

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

15 years agoround off ping listings to nearest integer
havoc [Thu, 9 Jun 2005 11:55:07 +0000 (11:55 +0000)]
round off ping listings to nearest integer

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

15 years agoChanged the Host_Error calls in the string indexing functions to PRVM_ERROR calls.
black [Wed, 8 Jun 2005 21:19:43 +0000 (21:19 +0000)]
Changed the Host_Error calls in the string indexing functions to PRVM_ERROR calls.

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

15 years agoNew Key_Event is still disabled.
black [Wed, 8 Jun 2005 20:12:37 +0000 (20:12 +0000)]
New Key_Event is still disabled.
Changed it back, so keys bound to toggleconsole that arent used as
console keys can hide the console again when pressed in the console.

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

15 years agoUpdated Dev-C++ project files
molivier [Wed, 8 Jun 2005 12:24:28 +0000 (12:24 +0000)]
Updated Dev-C++ project files

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

15 years agoChanged default sound module for linux to ALSA. Modified makefiles to allow people...
molivier [Wed, 8 Jun 2005 06:06:44 +0000 (06:06 +0000)]
Changed default sound module for linux to ALSA. Modified makefiles to allow people to choose the sound module easily at compile time (ex: "make DP_SOUND_API=OSS release" compiles release binaries with OSS sound output). Available sound modules are: NULL, OSS, ALSA, BSD, WIN, and COREAUDIO (not functional yet).

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

15 years agoMy Key_Event is disabled (yet).
black [Tue, 7 Jun 2005 20:55:08 +0000 (20:55 +0000)]
My Key_Event is disabled (yet).
-Changed it to only toggle the console with ESCAPE when you're in the console,
 so binding toggleconsole to a normal key wont toggle it while typing.
-Changed the panic console key to shift-escape since ctrl-escape open the start
Feel free to test it.
@ETG: since I can probably only reach you this way: it is intended that the console
toggle key now appears in the console input line and is also send to e.g. message.
This is because the color tag ^ key opens the console on some keyboard layouts and
couldnt be typed in otherwise.

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

15 years agoDisabling black's key code:
eviltypeguy [Tue, 7 Jun 2005 02:14:38 +0000 (02:14 +0000)]
Disabling black's key code:
* Breaks US keyboard console access
* Breaks input for US keyboard, causing bizarre input problems and choppy MP gameplay

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

15 years agoIf the new Key_Event breaks anything for you, you can set #if 0 and activate the old
black [Mon, 6 Jun 2005 20:37:00 +0000 (20:37 +0000)]
If the new Key_Event breaks anything for you, you can set #if 0 and activate the old
one again.
-Moved _Con_DrawString to cl_screen and changed its name to DrawQ_ColoredString.
-Changed all the code to allow colored nicks.
-Changed Win32 code to support two-char keys (it takes the second byte - may
 need some more testing).
-Rewrote Key_Event to support typing in the ^ key on Germany keyboards (or
 at least mine). Press ^ two times, once to open the console and once to close it.
 If you type in a message, there will be a ^ char waiting for you (same in the  console if   you open it again).

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

15 years agouse only the latest ping time, not averaged
havoc [Mon, 6 Jun 2005 07:24:26 +0000 (07:24 +0000)]
use only the latest ping time, not averaged

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

15 years agoremoved one variable too many
havoc [Mon, 6 Jun 2005 07:23:24 +0000 (07:23 +0000)]
removed one variable too many

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

15 years agofix two warnings after the last commit
havoc [Mon, 6 Jun 2005 07:22:59 +0000 (07:22 +0000)]
fix two warnings after the last commit

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

15 years agouse latest ping from client struct rather than averaging ping_times
havoc [Mon, 6 Jun 2005 07:20:12 +0000 (07:20 +0000)]
use latest ping from client struct rather than averaging ping_times

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

15 years agofix crouch button to be the right one
havoc [Mon, 6 Jun 2005 06:34:27 +0000 (06:34 +0000)]
fix crouch button to be the right one

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

15 years agofixed a PRVM_Crash crash when progs was NULL
havoc [Mon, 6 Jun 2005 03:53:13 +0000 (03:53 +0000)]
fixed a PRVM_Crash crash when progs was NULL

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

15 years agofixed the 'floating models' bug (EntityFrame5_WriteFrame was inconsistent with its...
havoc [Sun, 5 Jun 2005 10:41:03 +0000 (10:41 +0000)]
fixed the 'floating models' bug (EntityFrame5_WriteFrame was inconsistent with its maxedicts)

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

15 years agofix lagged prydon cursor trace bug (it was using renderer variables, now uses V_CalcR...
havoc [Sun, 5 Jun 2005 09:27:19 +0000 (09:27 +0000)]
fix lagged prydon cursor trace bug (it was using renderer variables, now uses V_CalcRefdef to get an up to date view matrix before this frame is even rendered)
fixed 'shooting at world origin' bug due to a misplaced CL_UpdatePrydonCursor call (now in CL_SendMove so it works properly)

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

15 years agouse TEXF_CLAMP on Draw_CachePic (except for the color control ditherpattern)
havoc [Sun, 5 Jun 2005 09:24:24 +0000 (09:24 +0000)]
use TEXF_CLAMP on Draw_CachePic (except for the color control ditherpattern)

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

15 years agodon't hit your own model with cl_prydoncursor traces
havoc [Sun, 5 Jun 2005 09:18:42 +0000 (09:18 +0000)]
don't hit your own model with cl_prydoncursor traces

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

15 years agofixed impulse lossage problem (ApplyClientMove wasn't being called during ReadClientMove)
havoc [Sun, 5 Jun 2005 08:34:43 +0000 (08:34 +0000)]
fixed impulse lossage problem (ApplyClientMove wasn't being called during ReadClientMove)

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

15 years agoonly give shareware warning if running GAME_NORMAL (quake)
havoc [Sun, 5 Jun 2005 07:12:06 +0000 (07:12 +0000)]
only give shareware warning if running GAME_NORMAL (quake)

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

15 years agoFixed an signed/unsigned warning.
black [Fri, 3 Jun 2005 19:36:07 +0000 (19:36 +0000)]
Fixed an signed/unsigned warning.

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

15 years agoadded a small simple optimization of prog->knownstring add/remove
havoc [Fri, 3 Jun 2005 15:43:21 +0000 (15:43 +0000)]
added a small simple optimization of prog->knownstring add/remove

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

15 years ago-Added the cvars net_slist_timeout and net_slist_maxtries.
black [Fri, 3 Jun 2005 14:15:59 +0000 (14:15 +0000)]
-Added the cvars net_slist_timeout and net_slist_maxtries.
-The queue know tries to query a server multiple times.

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

15 years agofix a cast warning
havoc [Fri, 3 Jun 2005 14:15:14 +0000 (14:15 +0000)]
fix a cast warning

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

15 years agoremove unused PRVM_SetQCString function
havoc [Fri, 3 Jun 2005 14:12:18 +0000 (14:12 +0000)]
remove unused PRVM_SetQCString function

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

15 years agorewrote PRVM_AllocString and PRVM_FreeString to deal with string offsets directly...
havoc [Fri, 3 Jun 2005 14:11:07 +0000 (14:11 +0000)]
rewrote PRVM_AllocString and PRVM_FreeString to deal with string offsets directly (rather than pointers) to avoid unnecessary GetString/SetString calls

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

15 years agoreset callcount in prvm_profile
havoc [Fri, 3 Jun 2005 13:36:22 +0000 (13:36 +0000)]
reset callcount in prvm_profile

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

15 years agoshut down local server when connected to a remote server
havoc [Fri, 3 Jun 2005 12:49:36 +0000 (12:49 +0000)]
shut down local server when connected to a remote server
some cleaning of NetConn_QueryQueueFrame (and it now goes to sleep when there are no remaining queries to run as an optimization)
added net_slist_queriespersecond and net_slist_queriesperframe cvars

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

15 years agoadded ctrl-escape hotkey for console (I know I coded this before... but apparently...
havoc [Fri, 3 Jun 2005 11:05:25 +0000 (11:05 +0000)]
added ctrl-escape hotkey for console (I know I coded this before...  but apparently it never got committed)

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

15 years agoSilly me, apparently FNDELAY *is* available if you include sys/file.h on Solaris.
eviltypeguy [Fri, 3 Jun 2005 03:44:39 +0000 (03:44 +0000)]
Silly me, apparently FNDELAY *is* available if you include sys/file.h on Solaris.

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

15 years agoChanges necessary to build and run on Solaris 10 x86
eviltypeguy [Fri, 3 Jun 2005 03:20:59 +0000 (03:20 +0000)]
Changes necessary to build and run on Solaris 10 x86

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

15 years agoAdded a query queue (test commit so Willis can test it).
black [Thu, 2 Jun 2005 21:10:24 +0000 (21:10 +0000)]
Added a query queue (test commit so Willis can test it).

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

15 years agoDidnt know that Host_StartVideo works this way (called randomly around the code)...
black [Thu, 2 Jun 2005 19:21:26 +0000 (19:21 +0000)]
Didnt know that Host_StartVideo works this way (called randomly around the code), so now the menu should be loaded at the right time (or just-in-time :))

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

15 years agoRedid the coloring of the embedded font to use random colored pixels to make it look...
tomaz [Thu, 2 Jun 2005 19:06:40 +0000 (19:06 +0000)]
Redid the coloring of the embedded font to use random colored pixels to make it look a bit more like the worn look of the original quake conchar.

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

15 years ago-Changed host_abortserver to host_abortframe.
black [Thu, 2 Jun 2005 19:00:05 +0000 (19:00 +0000)]
-Changed host_abortserver to host_abortframe.
-Added a hack to allow the menu crash in Host_Init without it taking down
 the whole host (please intergrate this into the general design somehow ASAP).
-Changed the hostcache code to always add servers at the right position and
 to eject 'worse' servers from the viewlist.

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

15 years agoUpdated the embedded font to contain the 2 top rows of signs/chars/thingies. Also...
tomaz [Thu, 2 Jun 2005 18:45:19 +0000 (18:45 +0000)]
Updated the embedded font to contain the 2 top rows of signs/chars/thingies. Also made the coloring of it to better match the original quake conchar.

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

15 years agofix some potential buffer overflows
havoc [Thu, 2 Jun 2005 11:42:18 +0000 (11:42 +0000)]
fix some potential buffer overflows

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

15 years agofix a stack smash possibility in loadimagepixels
havoc [Thu, 2 Jun 2005 09:51:34 +0000 (09:51 +0000)]
fix a stack smash possibility in loadimagepixels

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

15 years agofix two severe geometry bugs in the zym loader
havoc [Thu, 2 Jun 2005 09:02:55 +0000 (09:02 +0000)]
fix two severe geometry bugs in the zym loader

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

15 years ago-Added Host_AbortCurrentFrame to hide the longjump and make it usable by
black [Wed, 1 Jun 2005 19:21:09 +0000 (19:21 +0000)]
-Added Host_AbortCurrentFrame to hide the longjump and make it usable by
 the VM error functions.
-Moved the static variables of Host_Error into the function body.
-Changed the definition of error_cmd to be called instead of Host_Error,
 so the VM control code is in full control of the error processing.
-Added MP_Error to the menu, so a menu crash wont shutdown the server anymore.
-Fixed an annying bug caused by a typo, that crashes Nexuiz if you query for
 a string in the serverlist.
-PRVM_Crash resets the prog pointer now.
-PRVM_Begin use Con_Printf again (but PRVM_DEBUGPRSTACK has been disabled again).

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

15 years agoenable unicode and keyrepeat every time a video mode is initialized, this seems to...
havoc [Wed, 1 Jun 2005 08:38:30 +0000 (08:38 +0000)]
enable unicode and keyrepeat every time a video mode is initialized, this seems to fix the bug where typing stops working after a vid_restart

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

15 years agoshortened movement queue back to 64 items to prevent a runaway loop (falling behind...
havoc [Wed, 1 Jun 2005 08:37:33 +0000 (08:37 +0000)]
shortened movement queue back to 64 items to prevent a runaway loop (falling behind and not being able to run the collisions fast enough) in Nexuiz maps on my machine

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

15 years agofix some crashes with server commands (kick, view* commands)
havoc [Wed, 1 Jun 2005 04:03:43 +0000 (04:03 +0000)]
fix some crashes with server commands (kick, view* commands)

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

15 years agoless confusing messages from Sys_LoadLibrary
havoc [Wed, 1 Jun 2005 00:55:06 +0000 (00:55 +0000)]
less confusing messages from Sys_LoadLibrary

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