]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

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

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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 years agooops, two loop counting bugs, fixed
lordhavoc [Mon, 23 Apr 2001 22:49:56 +0000 (22:49 +0000)]
oops, two loop counting bugs, fixed

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

23 years agoadded back support for textures smaller than 4 pixels wide (Nehahra uses one)
lordhavoc [Mon, 23 Apr 2001 22:03:00 +0000 (22:03 +0000)]
added back support for textures smaller than 4 pixels wide (Nehahra uses one)

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

23 years agoadded newmap function to render modules (so explosions and other things are reset...
lordhavoc [Fri, 20 Apr 2001 15:48:49 +0000 (15:48 +0000)]
added newmap function to render modules (so explosions and other things are reset on map load)
CL_AllocDlight redesigned (takes all settings for dlight on parameter line)
dlights now use a pointer to their owner entity instead of a key number
light emitting entities now glow properly (directional lighting disabled on the entity that owns the dlight)
cl_shownet no longer spews empty lines when recieving less updates from server than client framerate
some whitespace cleanup
fixed some missing parentheses on a condition in R_BuildLightmap (mixed &&, &, and ||, eek)
fixed vertex array problems with fog sky
increased MAX_TRANSPOLYS from 8192 to 65536
added a general purpose decal engine, superior to the decal particles (lower CPU use, better lighting)
added bullet hole decals and bullet hole texture generator
added r_speeds2 time reporting for moveexplosions, drawexplosions, and drawdecals
cleaned up dlight logic, all code now relies on radius, which is cleared when the dlight dies, this removed all potential flickering problems and offers a minor speedup
optimized R_ResampleTexture further to improve load times
moved heap size commandline parameter stuff from platform specific startup code to Host_Init, now all platforms understand -mem, -winmem, and -heapsize
WAD3 texture transparency now supported again
r_explosionclip cvar is now saved to config
r_drawexplosions cvar added
r_particles cvar is now saved to config
r_dynamicparticles cvar renamed to r_particles_lighting
r_particles_bloodshowers cvar added to disable blood shower effects
r_particles_blood cvar added to disable blood effects
r_particles_smoke cvar added to disable smoke effects
r_particles_sparks cvar added to disable spark effects
r_particles_bubbles cvar added to disable bubble effects
fixed smoke texture problem (0 alpha-noise portions were not written to texture, leaving portions of previous texture in buffer)
changed nearly every particle effect to look better and use less particles and fillrate, major speed gains resulted
blood particles no longer fade inflight as it made the effects less impressive and resulted in a lot of mostly transparent decals
major particle size bug fixed, all view aligned particles (everything but rain and decals) were 50% larger than they were supposed to be
particles now use transpolyvertub (unsigned byte colors) instead of transpolyvert for a speedup

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

23 years agoadded newmap function to render modules (so explosions and other things are reset...
lordhavoc [Fri, 20 Apr 2001 15:38:28 +0000 (15:38 +0000)]
added newmap function to render modules (so explosions and other things are reset on map load)
CL_AllocDlight redesigned (takes all settings for dlight on parameter line)
dlights now use a pointer to their owner entity instead of a key number
light emitting entities now glow properly (directional lighting disabled on the entity that owns the dlight)
cl_shownet no longer spews empty lines when recieving less updates from server than client framerate
some whitespace cleanup
fixed some missing parentheses on a condition in R_BuildLightmap (mixed &&, &, and ||, eek)
fixed vertex array problems with fog sky
increased MAX_TRANSPOLYS from 8192 to 65536
added a general purpose decal engine, superior to the decal particles (lower CPU use, better lighting)
added bullet hole decals and bullet hole texture generator
added r_speeds2 time reporting for moveexplosions, drawexplosions, and drawdecals
cleaned up dlight logic, all code now relies on radius, which is cleared when the dlight dies, this removed all potential flickering problems and offers a minor speedup
optimized R_ResampleTexture further to improve load times
moved heap size commandline parameter stuff from platform specific startup code to Host_Init, now all platforms understand -mem, -winmem, and -heapsize
WAD3 texture transparency now supported again
r_explosionclip cvar is now saved to config
r_drawexplosions cvar added
r_particles cvar is now saved to config
r_dynamicparticles cvar renamed to r_particles_lighting
r_particles_bloodshowers cvar added to disable blood shower effects
r_particles_blood cvar added to disable blood effects
r_particles_smoke cvar added to disable smoke effects
r_particles_sparks cvar added to disable spark effects
r_particles_bubbles cvar added to disable bubble effects
fixed smoke texture problem (0 alpha-noise portions were not written to texture, leaving portions of previous texture in buffer)
changed nearly every particle effect to look better and use less particles and fillrate, major speed gains resulted
blood particles no longer fade inflight as it made the effects less impressive and resulted in a lot of mostly transparent decals
major particle size bug fixed, all view aligned particles (everything but rain and decals) were 50% larger than they were supposed to be
particles now use transpolyvertub (unsigned byte colors) instead of transpolyvert for a speedup

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

23 years agogl_mtex_enum has moved to vid_shared.c
knghtbrd [Fri, 6 Apr 2001 03:51:39 +0000 (03:51 +0000)]
gl_mtex_enum has moved to vid_shared.c

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

23 years agomissed this one...
lordhavoc [Fri, 6 Apr 2001 03:49:40 +0000 (03:49 +0000)]
missed this one...

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

23 years agoadded default case for particles to report the error and remove the particle
lordhavoc [Fri, 6 Apr 2001 03:48:40 +0000 (03:48 +0000)]
added default case for particles to report the error and remove the particle

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