19 years agogot rid of two trigraph warnings in gcc 3.0
lordhavoc [Thu, 8 Nov 2001 02:25:53 +0000 (02:25 +0000)]
got rid of two trigraph warnings in gcc 3.0

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

19 years agochanged swapintblock loop to hopefully get rid of a gcc 3.0 warning
lordhavoc [Thu, 8 Nov 2001 02:23:00 +0000 (02:23 +0000)]
changed swapintblock loop to hopefully get rid of a gcc 3.0 warning

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

19 years agofix for gcc 3.0 warnings on MSG_ReadByte in function parameters
lordhavoc [Thu, 8 Nov 2001 02:20:07 +0000 (02:20 +0000)]
fix for gcc 3.0 warnings on MSG_ReadByte in function parameters

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

19 years agoAdded MSVC6 project files
molivier [Tue, 6 Nov 2001 07:16:21 +0000 (07:16 +0000)]
Added MSVC6 project files

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

19 years agotwo-layer sky rendering now uses GL_ARB_texture_env_combine if available to render...
lordhavoc [Fri, 2 Nov 2001 12:45:53 +0000 (12:45 +0000)]
two-layer sky rendering now uses GL_ARB_texture_env_combine if available to render both layers in one pass (nice speedup), and sky rendering code has been simplified a little, also optimized the per vertex direction calculations to use RSqrt code instead of normal 1/sqrt

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

19 years agofixed gl_combine so it is enabled by default (if present)
lordhavoc [Fri, 2 Nov 2001 11:06:35 +0000 (11:06 +0000)]
fixed gl_combine so it is enabled by default (if present)

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

19 years agoremoved support for GL_SGIS_multitexture (ancient)
lordhavoc [Fri, 2 Nov 2001 11:02:38 +0000 (11:02 +0000)]
removed support for GL_SGIS_multitexture (ancient)
redesigned entire extension setup system (now resides only in vid_shared.c)
all extension functions are checked against NULL before the extension is enabled (if one is NULL it complains appropriately)
now also looks for glClientActiveTextureARB (needed for multitexture in vertex arrays)

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

19 years agominor buffer-size-safe improvement in Sys_Printf, and some other changes to it
lordhavoc [Fri, 2 Nov 2001 10:54:24 +0000 (10:54 +0000)]
minor buffer-size-safe improvement in Sys_Printf, and some other changes to it

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

19 years agopossible improvement to keep camera out of walls (still ends up in a wall occasionall...
lordhavoc [Fri, 2 Nov 2001 10:52:41 +0000 (10:52 +0000)]
possible improvement to keep camera out of walls (still ends up in a wall occasionally, just less often)

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

19 years agocorrected a typo in a comment referring to the e4 hall in start as e1m4
lordhavoc [Fri, 2 Nov 2001 10:50:43 +0000 (10:50 +0000)]
corrected a typo in a comment referring to the e4 hall in start as e1m4

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

19 years agofix for misnumbered video mode menu in menu key code (it should never be misnumbered...
lordhavoc [Fri, 2 Nov 2001 10:49:31 +0000 (10:49 +0000)]
fix for misnumbered video mode menu in menu key code  (it should never be misnumbered again... it is now a calculated index)

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

19 years agoclear keybindings[] array during Key_Init (bounds checker freaks if it isn't cleared...
lordhavoc [Fri, 2 Nov 2001 09:18:47 +0000 (09:18 +0000)]
clear keybindings[] array during Key_Init (bounds checker freaks if it isn't cleared before it is used)

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

19 years agochanged -march=686 to -march=i686
lordhavoc [Fri, 2 Nov 2001 06:15:42 +0000 (06:15 +0000)]
changed -march=686 to -march=i686

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

19 years agoadded support for GL_ARB_texture_env_combine, currently only used on wall rendering...
lordhavoc [Tue, 30 Oct 2001 21:55:46 +0000 (21:55 +0000)]
added support for GL_ARB_texture_env_combine, currently only used on wall rendering (for 4x overbright support)

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

19 years agoadded support for transparent model skins
lordhavoc [Tue, 30 Oct 2001 21:51:37 +0000 (21:51 +0000)]
added support for transparent model skins

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

19 years agoadded R_TextureHasAlpha function to check if a loaded texture has alpha
lordhavoc [Tue, 30 Oct 2001 21:48:21 +0000 (21:48 +0000)]
added R_TextureHasAlpha function to check if a loaded texture has alpha

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

19 years agoadded include unistd.h and fcntl.h on non-win32
lordhavoc [Mon, 29 Oct 2001 23:43:58 +0000 (23:43 +0000)]
added include unistd.h and fcntl.h on non-win32

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

19 years agoremoved unused portalstack array
lordhavoc [Mon, 29 Oct 2001 23:38:36 +0000 (23:38 +0000)]
removed unused portalstack array

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

19 years agogot rid of leafnums array in edict structure for pvs checking, pvs is now checked...
lordhavoc [Mon, 29 Oct 2001 07:23:10 +0000 (07:23 +0000)]
got rid of leafnums array in edict structure for pvs checking, pvs is now checked based on predicted locations of entities, and some reorganizational optimizations of WriteEntitiestoClient
changed an SV_Move call to use the proper MOVE_ define (no behavior change, only cleanup)

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

19 years agochanged SV_Move calls to use MOVE_NORMAL or MOVE_NOMONSTERS instead of false/true...
lordhavoc [Mon, 29 Oct 2001 07:20:32 +0000 (07:20 +0000)]
changed SV_Move calls to use MOVE_NORMAL or MOVE_NOMONSTERS instead of false/true as the type parameter (no behavior change, only cleanup)

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

19 years agofixed ED_Print so that it can not cause buffer overflows on large entities
lordhavoc [Mon, 29 Oct 2001 07:17:36 +0000 (07:17 +0000)]
fixed ED_Print so that it can not cause buffer overflows on large entities

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

19 years agomoved Sys_Printf and related code/data to sys_shared.c (new), removed all uses of...
lordhavoc [Mon, 29 Oct 2001 07:16:35 +0000 (07:16 +0000)]
moved Sys_Printf and related code/data to sys_shared.c (new), removed all uses of isDedicated (replaced with cls.state == ca_dedicated), timestamps should work on all targets now, and made some minor whitespace changes

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

19 years agochanging all isDedicated references to cls.state == ca_dedicated
lordhavoc [Mon, 29 Oct 2001 06:51:57 +0000 (06:51 +0000)]
changing all isDedicated references to cls.state == ca_dedicated

also changed where Chase_Init is called in Host_Init (no behavior change, just cleanup)

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

19 years agoforgot to put a newline at the end of the file
lordhavoc [Mon, 29 Oct 2001 06:45:08 +0000 (06:45 +0000)]
forgot to put a newline at the end of the file

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

19 years agofixed input reading code bug in dedicated servers (clients are not kicked off immedia...
lordhavoc [Mon, 29 Oct 2001 06:43:57 +0000 (06:43 +0000)]
fixed input reading code bug in dedicated servers (clients are not kicked off immediately on connecting now...  clearly an important fix)
minor whitespace changes
and changed a SV_Move call to use MOVE_NOMONSTERS instead of 1, no effect on code behavior

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

19 years agochanged SV_Move call to use MOVE_NORMAL instead of false, no effect on code behavior
lordhavoc [Mon, 29 Oct 2001 06:40:05 +0000 (06:40 +0000)]
changed SV_Move call to use MOVE_NORMAL instead of false, no effect on code behavior

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

19 years agochanged SV_Move calls to always use the correct MOVE_ defines in the type parameter...
lordhavoc [Mon, 29 Oct 2001 06:37:10 +0000 (06:37 +0000)]
changed SV_Move calls to always use the correct MOVE_ defines in the type parameter (true or false were often passed, due to a legacy of it being simply 'nomonsters', apparently during quake's development), no code change, just cleanup

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

19 years agorearranged some variable declarations (no code changes)
lordhavoc [Mon, 29 Oct 2001 06:34:57 +0000 (06:34 +0000)]
rearranged some variable declarations (no code changes)

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

19 years agominor whitespace tweak on loc1 label, removed old debugging warnings about not checki...
lordhavoc [Mon, 29 Oct 2001 06:32:06 +0000 (06:32 +0000)]
minor whitespace tweak on loc1 label, removed old debugging warnings about not checking certain portals

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

19 years agomoved ixtable definition and initialization code to mathlib (and added Mathlib_Init...
lordhavoc [Mon, 29 Oct 2001 06:30:27 +0000 (06:30 +0000)]
moved ixtable definition and initialization code to mathlib (and added Mathlib_Init call to common.c), fixes bugs in dedicated server (previously ixtable was being initialized in the renderer)

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

19 years agoremoved duplicate comment on a line
lordhavoc [Mon, 29 Oct 2001 06:28:36 +0000 (06:28 +0000)]
removed duplicate comment on a line

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

19 years agochanged way that "entities" (CL_PrintEntities_f) displays entities, and now skips...
lordhavoc [Mon, 29 Oct 2001 06:27:54 +0000 (06:27 +0000)]
changed way that "entities" (CL_PrintEntities_f) displays entities, and now skips inactive entities (forgot to update it's code a long time ago, apparently)

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

19 years agono longer needs ui/mousepointer.lmp
lordhavoc [Mon, 29 Oct 2001 03:28:21 +0000 (03:28 +0000)]
no longer needs ui/mousepointer.lmp

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

19 years agofix for snprintf check (can't check if functions exist, changed to WIN32 check)
lordhavoc [Mon, 29 Oct 2001 03:11:26 +0000 (03:11 +0000)]
fix for snprintf check (can't check if functions exist, changed to WIN32 check)

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

19 years agofix for two Con_Printf calls that are passed a string as the format string
lordhavoc [Sun, 28 Oct 2001 23:06:54 +0000 (23:06 +0000)]
fix for two Con_Printf calls that are passed a string as the format string

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

19 years agodon't change gamma ramps when running dedicated
lordhavoc [Sun, 28 Oct 2001 22:10:51 +0000 (22:10 +0000)]
don't change gamma ramps when running dedicated

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

19 years agoadded hidden surface removal option (r_ser cvar)
lordhavoc [Sun, 28 Oct 2001 20:49:16 +0000 (20:49 +0000)]
added hidden surface removal option (r_ser cvar)

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

19 years agoadded #define snprintf _snprintf for win32
lordhavoc [Sun, 28 Oct 2001 20:48:43 +0000 (20:48 +0000)]
added #define snprintf _snprintf for win32

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

19 years agoadd externs for window_x and window_y
lordhavoc [Sun, 28 Oct 2001 20:48:05 +0000 (20:48 +0000)]
add externs for window_x and window_y

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

19 years agoforgot to update this file apparently
lordhavoc [Sun, 28 Oct 2001 20:47:32 +0000 (20:47 +0000)]
forgot to update this file apparently

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

19 years agomade the Sorted Edge Rasterizer (hidden surface removal) optional as the r_ser cvar...
lordhavoc [Sun, 28 Oct 2001 09:18:01 +0000 (09:18 +0000)]
made the Sorted Edge Rasterizer (hidden surface removal) optional as the r_ser cvar, can be a speed difference
added back the old portal-passage worldnode code (sometimes faster)
recalculate node bounding boxes when loading (based on leaf bounding boxes which are calculated from portal generation)
added untested code for qftol (much faster double to integer conversion on x86, not used yet)
added a couple Hunk_Check calls while loading things (just to be a little more paranoid)
minor whitespace cleanup, some commented out code removed

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

19 years agoadded CVAR_SAVE and CVAR_NOTIFY flags to cvar_t structure (at the beginning), updated...
lordhavoc [Fri, 26 Oct 2001 20:17:33 +0000 (20:17 +0000)]
added CVAR_SAVE and CVAR_NOTIFY flags to cvar_t structure (at the beginning), updated all cvar definitions to match, a lot more cvars are saved now.\nadded server-side portal checking of entity visibility, only entities which really are visible are sent to clients now (some slowdown on server, but reduces network traffic and makes wallhacks useless)\nadded mostly untested mouse and keyboard user interface code (input support not completely finished yet, and no code using the UI yet)\n

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

19 years agoForgot to update build number for 105 release
lordhavoc [Thu, 18 Oct 2001 14:48:51 +0000 (14:48 +0000)]
Forgot to update build number for 105 release

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

19 years agoprobable fix for severe model rendering bugs in 3DFX voodoo4/5 win32 drivers, and...
lordhavoc [Thu, 18 Oct 2001 00:59:02 +0000 (00:59 +0000)]
probable fix for severe model rendering bugs in 3DFX voodoo4/5 win32 drivers, and G400 win32 drivers (they don't seem to handle a sizeof == 0 case for the array pointer stepping)

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

19 years agolittle whitespace change
lordhavoc [Wed, 17 Oct 2001 19:17:21 +0000 (19:17 +0000)]
little whitespace change

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

19 years agoadded force_centerview to glx (by moving it to vid_shared)
lordhavoc [Wed, 17 Oct 2001 19:15:55 +0000 (19:15 +0000)]
added force_centerview to glx (by moving it to vid_shared)

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

19 years agofix for cvar tab completion crash
lordhavoc [Wed, 17 Oct 2001 19:14:07 +0000 (19:14 +0000)]
fix for cvar tab completion crash

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

19 years agofix for oriented sprites not appearing
lordhavoc [Wed, 17 Oct 2001 18:43:57 +0000 (18:43 +0000)]
fix for oriented sprites not appearing

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

19 years agoforgot to commit updated makefile
lordhavoc [Tue, 16 Oct 2001 12:49:07 +0000 (12:49 +0000)]
forgot to commit updated makefile

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

19 years agomallocs, callocs, and frees changed to qmalloc/qfree
lordhavoc [Mon, 15 Oct 2001 17:12:15 +0000 (17:12 +0000)]
mallocs, callocs, and frees changed to qmalloc/qfree

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

19 years agofix for command/cvar/alias completion bug (example: imp gave iimpulse)
lordhavoc [Mon, 15 Oct 2001 16:25:33 +0000 (16:25 +0000)]
fix for command/cvar/alias completion bug (example: imp gave iimpulse)

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

19 years agochanged defaults for chase_active camera position, and the settings are now saved...
lordhavoc [Mon, 15 Oct 2001 13:41:55 +0000 (13:41 +0000)]
changed defaults for chase_active camera position, and the settings are now saved to the config

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

19 years agomove dynamic lights up 30 units for the client player when firstperson (so the gun...
lordhavoc [Mon, 15 Oct 2001 13:41:25 +0000 (13:41 +0000)]
move dynamic lights up 30 units for the client player when firstperson (so the gun gets lit by glow effects)

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

19 years agofix the off-by-one fix (oops)
lordhavoc [Mon, 15 Oct 2001 13:36:37 +0000 (13:36 +0000)]
fix the off-by-one fix (oops)

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

19 years agofix an off-by-one issue with model->numleafs in PVS related code (dynamic lighting...
lordhavoc [Mon, 15 Oct 2001 13:23:19 +0000 (13:23 +0000)]
fix an off-by-one issue with model->numleafs in PVS related code (dynamic lighting and world rendering), numleafs excludes leaf 0, how strange...

no missing (black) leaf bug anymore...

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

19 years agoadded function definitions for tab completion back (oops)
lordhavoc [Mon, 15 Oct 2001 12:13:20 +0000 (12:13 +0000)]
added function definitions for tab completion back (oops)

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

19 years agoMajor update, been neglecting CVS for some time...
lordhavoc [Mon, 15 Oct 2001 11:46:20 +0000 (11:46 +0000)]
Major update, been neglecting CVS for some time...

clipping engine (r_clip.c) to determine exactly what is visible (this has altered MANY parts of the rendering engine)

fixed visibility bug with multiple players on a listen server

vid_glx.c has been improved/cleaned up greatly and now pays attention to vid_mouse and vid_dga and will not grab the mouse until after the first frame

snd_alsa_0_5.c has been fixed (Qprintf vs fprintf bug)

nehahra works again (was missing svc_skybox support)

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

19 years agoignore ChangeLog
taniwha [Fri, 20 Jul 2001 20:25:17 +0000 (20:25 +0000)]
ignore ChangeLog

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

19 years agovery nice command line tab completeion from Shawn Walker
taniwha [Fri, 20 Jul 2001 20:24:36 +0000 (20:24 +0000)]
very nice command line tab completeion from Shawn Walker
<eviltypeguy@qeradiant.com> with my later modifications so that commands
are completed as much as possible.

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

19 years agoanother attempt to fix skybox loading
lordhavoc [Fri, 15 Jun 2001 20:55:45 +0000 (20:55 +0000)]
another attempt to fix skybox loading

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

19 years agofix loading savegames
taniwha [Sun, 10 Jun 2001 21:21:41 +0000 (21:21 +0000)]
fix loading savegames

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

19 years agoadded -lz to the non-ALSA compile line, switched to non-ALSA compile by default ...
lordhavoc [Sun, 10 Jun 2001 20:03:42 +0000 (20:03 +0000)]
added -lz to the non-ALSA compile line, switched to non-ALSA compile by default (to match the sound driver default being non-ALSA)
added a lot of descriptive comments

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

19 years agoapply a fix for LordHavoc as his tree is not yet ready for committing
taniwha [Thu, 7 Jun 2001 19:38:17 +0000 (19:38 +0000)]
apply a fix for LordHavoc as his tree is not yet ready for committing

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

19 years agofix for skybox
lordhavoc [Thu, 7 Jun 2001 19:36:56 +0000 (19:36 +0000)]
fix for skybox

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

19 years agoadded a newline to the end
lordhavoc [Sun, 3 Jun 2001 23:40:51 +0000 (23:40 +0000)]
added a newline to the end

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

19 years agohopefully fix external file gzip support
taniwha [Sun, 3 Jun 2001 03:18:25 +0000 (03:18 +0000)]
hopefully fix external file gzip support

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

19 years agoskyquality and mergesky are saved to the config now
lordhavoc [Thu, 31 May 2001 02:02:16 +0000 (02:02 +0000)]
skyquality and mergesky are saved to the config now

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

19 years agofixed PCX loader bug to do with palettes
lordhavoc [Wed, 30 May 2001 08:36:08 +0000 (08:36 +0000)]
fixed PCX loader bug to do with palettes
added bounds checking for PCX, TGA, and LMP loaders

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

19 years agoadded loadsize variable set by COM_LoadFile
lordhavoc [Wed, 30 May 2001 08:28:52 +0000 (08:28 +0000)]
added loadsize variable set by COM_LoadFile

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

19 years agoadded newline at end to appease gcc
lordhavoc [Wed, 30 May 2001 08:03:02 +0000 (08:03 +0000)]
added newline at end to appease gcc

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

19 years agofix for mistake in pcx loader (had two pointers swapped)
lordhavoc [Wed, 30 May 2001 08:02:44 +0000 (08:02 +0000)]
fix for mistake in pcx loader (had two pointers swapped)

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

19 years agoincreased build number to 103
lordhavoc [Wed, 30 May 2001 07:09:03 +0000 (07:09 +0000)]
increased build number to 103

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

19 years agoadded sky quality and show framerate options to menu
lordhavoc [Wed, 30 May 2001 07:08:19 +0000 (07:08 +0000)]
added sky quality and show framerate options to menu

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

19 years agocompile dependencies
taniwha [Wed, 30 May 2001 06:16:04 +0000 (06:16 +0000)]
compile dependencies

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

19 years agofixes for zlib support, eliminated win32 FAR warnings and other warnings
lordhavoc [Wed, 30 May 2001 06:04:58 +0000 (06:04 +0000)]
fixes for zlib support, eliminated win32 FAR warnings and other warnings

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

19 years agooops, forgot to fix the Qread and Qwrite calls
taniwha [Wed, 30 May 2001 05:10:29 +0000 (05:10 +0000)]
oops, forgot to fix the Qread and Qwrite calls

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

19 years agorearranged sky rendering code
lordhavoc [Wed, 30 May 2001 04:57:15 +0000 (04:57 +0000)]
rearranged sky rendering code
reenabled sky sphere code
added r_skyquality cvar (0 = no sky, higher values improve quality of quake sky rendering, no change to skybox)
sky sphere uses identical texture calculations as glquake style now
added r_mergesky cvar (speed loss in my testing, but could be useful for very low fillrate cards, albeit a bit jerky)

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

19 years agoadded TEXF_ALWAYSPRECACHE
lordhavoc [Wed, 30 May 2001 04:50:53 +0000 (04:50 +0000)]

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

19 years agocheck in LordHavoc's changes for him after cleaning up the mess of conflicts
taniwha [Wed, 30 May 2001 04:50:19 +0000 (04:50 +0000)]
check in LordHavoc's changes for him after cleaning up the mess of conflicts
I caused. I hope I got it right :)

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

19 years agoremoved unused skytexturenum
lordhavoc [Wed, 30 May 2001 04:50:11 +0000 (04:50 +0000)]
removed unused skytexturenum

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

19 years agoremoved unused skytexturenum code
lordhavoc [Wed, 30 May 2001 04:44:44 +0000 (04:44 +0000)]
removed unused skytexturenum code

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

19 years agocommented out COM_LoadCacheFile
lordhavoc [Wed, 30 May 2001 04:39:22 +0000 (04:39 +0000)]
commented out COM_LoadCacheFile

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

19 years agoconverted script loading to use COM_LoadMallocFile instead of COM_LoadHunkFile
lordhavoc [Wed, 30 May 2001 04:38:19 +0000 (04:38 +0000)]
converted script loading to use COM_LoadMallocFile instead of COM_LoadHunkFile

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

19 years agogzip support from quakeforge (QFile and friends). also includes a couple of
taniwha [Wed, 30 May 2001 02:36:15 +0000 (02:36 +0000)]
gzip support from quakeforge (QFile and friends). also includes a couple of
compile fixes

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

19 years agoupdated to build 102
lordhavoc [Tue, 29 May 2001 16:25:03 +0000 (16:25 +0000)]
updated to build 102

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

19 years agosplit render portion of entity_t struct into entity_render_t
lordhavoc [Tue, 29 May 2001 16:00:56 +0000 (16:00 +0000)]
split render portion of entity_t struct into entity_render_t
got rid of glowsize and glowtrail fields in entity_render_t (since they were only used inside RelinkEntities anyway)
removed some commented out struct stuff
fixed mouse hide/show code in win32 (could get stuck shown)

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

19 years agocleaned up nearly all of the externs in .c files (moved to appropriate .h files)
lordhavoc [Sun, 27 May 2001 02:50:48 +0000 (02:50 +0000)]
cleaned up nearly all of the externs in .c files (moved to appropriate .h files)

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

19 years agoadded protocol.o
lordhavoc [Sat, 26 May 2001 22:24:12 +0000 (22:24 +0000)]
added protocol.o

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

19 years agosome whitespace changes
lordhavoc [Sat, 26 May 2001 19:44:32 +0000 (19:44 +0000)]
some whitespace changes
rearranged a few cvar definitions to be in more appropriate places
removed remnants of efrags system
added bitprofile command to report popularity of entity update components
fixed a number of baseline bugs and inconsistencies in the server and client (discovered using bitprofile)
general baseline generation code added (protocol.c)
added freelook cvar and menu option
exterior model capability added (so a model could be visible only when you are using chasecam, needed for visible weapon models)
fixed some inconsistencies in frame number sizes (should have been 16bit) in 16bit modelindex messages, and 8bit sound numbers that should have been 16bit
renamed Sys_FloatTime to Sys_DoubleTime
rewrote win32 Sys_DoubleTime code and minor work on UNIX Sys_DoubleTime
removed most of svc_entitiesbegin/svc_entitiesend code (big entity update protocol improvement planned)
hardware gamma/brightness/contrast support
hardware and software gamma/brightness/contrast adjustable in the menu
gl_lightmode (also known as lighthalf) switchable in the menu
can pick a crosshair in the menu
changed renderer references to r_refdef.vieworg to use r_origin instead
stripped out ancient transpoly code that was not being used
renamed qgamma array to texgamma
significant cleanup of mouse hide/show code in win32
improved eprint for better readability (better printing of floats/vectors)
added pr_fields and pr_globals commands to print a list of entity fields and global variables in loaded progs
moved some entity_state_t related stuff to protocol.c and protocol.h
made delta compression optional (sv_deltacompress cvar)
removed a lot of cruft
disabled stair step-up blending (never worked that well anyway)
removed sys_wind.c (I seriously doubt it worked)

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

19 years agoCleaned up clean target
knghtbrd [Sat, 26 May 2001 18:26:59 +0000 (18:26 +0000)]
Cleaned up clean target
Changed defaults to reflect the majority of systems

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

19 years agonow renders inward portals rather than outward portals in r_drawportals (more useful)
lordhavoc [Sun, 13 May 2001 07:49:53 +0000 (07:49 +0000)]
now renders inward portals rather than outward portals in r_drawportals (more useful)

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

19 years agobuild number 101
lordhavoc [Sat, 12 May 2001 15:31:17 +0000 (15:31 +0000)]
build number 101
all leaf bounding boxes are recalculated based on portals (superior to qbsp's method)
bounding box removed from node structure
vismarkframe stuff removed from node and leaf structures
minor tweaking to some network stuff (trying to track down a bug)
R_BSPWorldmode and R_LeafWorldmode have been removed, related cvars have been removed
R_NoVisWorldnode is only used when in a solid leaf now
have been trying to track down very rare disappearing leaf bug in portal worldnode code (or portal building?), unsuccessfully
redesign of entity dlight code, much cleaner and saner (all dlight effects can be combined at once now as well, no override occurs)

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

19 years agoforgot to put in extern qboolean hlbsp;
lordhavoc [Sat, 12 May 2001 11:09:25 +0000 (11:09 +0000)]
forgot to put in extern qboolean hlbsp;

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

19 years agodisabled wad3 loading from "wad" key in worldspawn of map when not loading an HL map
lordhavoc [Sat, 12 May 2001 11:03:05 +0000 (11:03 +0000)]
disabled wad3 loading from "wad" key in worldspawn of map when not loading an HL map

minor tweaks to entity update range code

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

19 years agoremoved net_vcr from the list of objects
lordhavoc [Sat, 12 May 2001 10:54:51 +0000 (10:54 +0000)]
removed net_vcr from the list of objects

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

19 years ago***map loader generates portals for the map*** (can you tell this is a big deal? :)
lordhavoc [Fri, 11 May 2001 08:27:05 +0000 (08:27 +0000)]
***map loader generates portals for the map*** (can you tell this is a big deal? :)
increased build number to 100 (it's the truth)
made loadingplaque work correctly
disabled (commented out) loadingplaque
removed efrags
each model is checked against visible leafs (made efrags obsolete)
put .active field into client entity states (more correct than checking modelindex)
disabled all cachedir stuff (#if CACHEENABLE)
removed scr_copytop and other no-longer-relevant variables
removed Con_NotifyBox (wasn't used)
cleaned up visframe stuff
removed a lot of unnecessary fields from mnode_t and a few from mleaf_t
clarified r_visframecount stuff (now referred to as r_vismarkframecount, and similarly visframe field in mnode_t/mleaf_t is now called vismarkframe)
got rid of offsets[] array in texture_t
rewrote r_notexture_mip related code (fixing black default texture)
got rid of skyisvisible variable (check currentskypoly instead)
got rid of gl_texsort
simplified surface rendering process greatly (R_DrawSurfaces)
surface rendering should now be totally sequential (good for caches)
renamed r_newworldnode to r_leafworldnode (will be removed in next commit)
disabled r_oldclip code (will be removed in next commit)
renamed R_WorldNode to R_BSPWorldNode (will be removed in next commit)
renamed R_NewWorldNode to R_LeafWorldNode (will be removed in next commit)
made copy of R_WorldNode that ignores vis data, called R_NoVisWorldNode
added R_PortalWorldNode, 3-80% speed gain depending on situation, improved culling of non-relevant leafs/surfaces
added r_portalworldnode cvar to test new code (this will become the standard worldnode in next commit)
minor optimization to wateralpha code
minor redesign of R_TextureAnimation and animated texture stuff in texture_t
cleaned up timing issues in water (now synced to cl.time, not realtime) and menu code (now synced to realtime, not host_time)
removed host_time
removed SCR_ModalMessage (this got rid of the 'are you sure?' question on newgame)
changed quit messages
got rid of SCR_BringDownConsole
reorganized 2D screen drawing code (now draws console when loading plaque is displayed, etc)
some cleanup on texture loading
redesigned R_Decal to make use of BSP tree in finding nearest surfaces
renamed and redesigned R_DrawDecals to GL_DrawDecals and no longer uses transpoly
particles are now only rendered if inside a visible leaf
sprites are now only rendered if touching a visible leaf
ambient sounds no longer play after disconnecting
fixed severe delta compressed entity bugs in client
sped up MOVETYPE_NONE a bit

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

19 years agostripped out serial and modem stuff (was not supported anyway)
lordhavoc [Sat, 5 May 2001 03:32:21 +0000 (03:32 +0000)]
stripped out serial and modem stuff (was not supported anyway)
a little bit of new very incomplete menu code

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

19 years agoNo more busy-waiting when framerate cap is reached (in both Linux and win versions)
lordhavoc [Fri, 4 May 2001 18:52:30 +0000 (18:52 +0000)]
No more busy-waiting when framerate cap is reached (in both Linux and win versions)
MOVETYPE_WALK on non-clients now links the edict like it should (major bugfix)

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

19 years agoremoved unused net_vcr (and all other traces of vcr system), apparently a predecessor...
lordhavoc [Sat, 28 Apr 2001 06:07:51 +0000 (06:07 +0000)]
removed unused net_vcr (and all other traces of vcr system), apparently a predecessor to quake demos

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

19 years agoa big change with a little description...
lordhavoc [Thu, 26 Apr 2001 05:38:37 +0000 (05:38 +0000)]
a big change with a little description...

rearranged client entity_t structure
redesigned entity update system (same protocol)
added support for split entity updates in the future for rate capping
glow trails and view relative entities should work now (untested)

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