20 years agochanged behavior about 'Bad Surfaces Extents', now only a warning, and such surfaces...
lordhavoc [Wed, 16 Jan 2002 20:31:44 +0000 (20:31 +0000)]
changed behavior about 'Bad Surfaces Extents', now only a warning, and such surfaces are rendered fullbright

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

20 years agoupdated project to match added/removed files
lordhavoc [Wed, 16 Jan 2002 19:17:10 +0000 (19:17 +0000)]
updated project to match added/removed files

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

20 years agohushed unitialized warning on end in cl_particles.c when using MSVC
lordhavoc [Wed, 16 Jan 2002 19:08:04 +0000 (19:08 +0000)]
hushed unitialized warning on end in cl_particles.c when using MSVC
fixed direct use of glActiveTextureARB/glClientActiveTextureARB
type cast parameters to glDepthMask

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

20 years agofix for missing (byte *) cast, and fix for WIN32 function lookup code in vid_shared.c
lordhavoc [Wed, 16 Jan 2002 18:47:28 +0000 (18:47 +0000)]
fix for missing (byte *) cast, and fix for WIN32 function lookup code in vid_shared.c

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

20 years agofixed a typo in cl_particles.c that happened to work in Linux (random() instead of...
lordhavoc [Wed, 16 Jan 2002 18:41:22 +0000 (18:41 +0000)]
fixed a typo in cl_particles.c that happened to work in Linux (random() instead of rand()), removed unused files, and moved CL_UpdateTEnts call

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

20 years agoforgot to remove these
lordhavoc [Wed, 16 Jan 2002 06:20:30 +0000 (06:20 +0000)]
forgot to remove these

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

20 years agorewrote memory system entirely (hunk, cache, and zone are gone, memory pools replaced...
lordhavoc [Wed, 16 Jan 2002 06:16:58 +0000 (06:16 +0000)]
rewrote memory system entirely (hunk, cache, and zone are gone, memory pools replaced them all)
models can be reloaded at any time (Mod_CheckLoaded, etc)
entire renderer can be restarted using r_restart command
batch triangle mesh rendering system (gl_backend.c)
most rendering code does not touch GL anymore
gl_textures now supports procedural textures, and fragment textures (small textures combined into larger images)
lightmaps can now be mipmapped (r_miplightmaps)
broke up r_part.c and r_decals.c into cl_particles.c, r_particles.c, cl_decals.c, and r_decals.c to improve renderer/client separation, but explosions are still renderer
moved CL_NextDemo from cl_main.c to cl_demo.c
cleaned up demo stop/disconnect code
removed render modules stuff from all cl_ files
renderer uses separate light array, and recalculates radius for lights based on color, and calculates subtract value to give it a soft edge at the radius perimeter
small surfaces do not use lightmaps (unfortunately they still look slightly different in dynamic lighting)
items can now bob according to cl_itembob* cvars
moved CL_SignonReply from cl_main.c to cl_parse.c
monster movement interpolation is now done clientside instead of serverside, Nehahra movie should look better now
cvars now have a .integer field containing the integer value of their string (nearly all .value accesses have been changed to .integer for speed reasons)
pmodel is now only available in Nehahra mode (pmodel was a bad hack)
r_farclip cvar removed, farclip now dynamically adjusts to level as you explore it
parsing of wad names out of HL maps is now in renderer code
changed isworldmodel stuff in model loading
cleaned up CL_ParseUpdate a bit (related to clientside monster interpolation)
renamed r_glowinglightning to cl_glowinglightning
moved FindNonSolidLocation to bmodel code
lightning beam models are now only looked up once
entity_t now contains an entity_persistent_t which holds data persistent from frame to frame (interpolation mainly), entity_render_t is wiped every frame
marked a lot more things as static
increased command buffer (script execution buffer) from 8k to 32k
COM_LoadMallocFile has been renamed to COM_LoadFile, and all other variants are gone
rounding on MSG_Read/Write stuff has been changed to fix negative rounding (C rounds toward zero, old code assumed it always rounded down)
improved cachepic (menu images) system to load from wad
statusbar now uses cachepic system
cachepics are cleared when renderer is restarted
fixed fog on transparent objects, should always look correct now
moved R_TimeRefresh_f from gl_rmisc.c to gl_rmain.c
moved R_NewMap from gl_rmisc.c to gl_rmain.c
deleted gl_rmisc.c
removed support for glfog
masked sky rendering is now done by first rendering the sky scene, clearing the depthbuffer, rendering invisible depth polys over it, then rendering the scene, this is for more flexibility
C-code based shader system (not scripted)
deleted hcompress.c
due to more thorough memory corruption detection, a (harmless with old zone system) buffer overflow bug in the client name command was fixed
untested (and quite possibly broken) quaternion math stuff added to mathlib.h
removed support for colormod entity effect (massive mess to support it everywhere)
improved QC PR_RunError reports
moved QC opcode execution loop into pr_execprogram.h, included multiple times
fairly major sbar cleanup
rearranged GL extension detection again
added EXT_texture_env_combine support

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

20 years agoSmall fixes to tab completion
eviltypeguy [Sat, 29 Dec 2001 21:20:49 +0000 (21:20 +0000)]
Small fixes to tab completion

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

20 years ago-safe now does something approximately close to correct. Not a full fix
knghtbrd [Mon, 17 Dec 2001 08:25:27 +0000 (08:25 +0000)]
-safe now does something approximately close to correct.  Not a full fix
for what it does and doesn't do, but this will suffice for now.  Added the
-nomouse flag to GLX.  Debugging is a bitch without it, really.  Also made
a few minor changes for gcc v3 building.  I'm not through with makefile
yet, though.

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

20 years agoforgot to add this
lordhavoc [Thu, 13 Dec 2001 18:24:05 +0000 (18:24 +0000)]
forgot to add this

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

20 years agoUpdated MSVC6 project files
molivier [Wed, 5 Dec 2001 07:06:27 +0000 (07:06 +0000)]
Updated MSVC6 project files

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

20 years agorewrote RecursiveHullCheck, no longer gets stuck on angle changes, and is generally...
lordhavoc [Tue, 4 Dec 2001 13:28:29 +0000 (13:28 +0000)]
rewrote RecursiveHullCheck, no longer gets stuck on angle changes, and is generally more correct all the time (no longer uses PointContents checks either)
added content value to RecursiveHullCheck and TraceLine, they can now treat any content change as an impact
TraceLine now can take NULL impact and normal if they are not desired
TraceLine now sets trace_endcontents to the impacted content value
rewrote nehahra/rogue/hipnotic/standard_quake variables to be gamemode (GAME_NORMAL, GAME_HIPNOTIC, GAME_ROGUE, GAME_NEHAHRA, etc)
unfinished code for directional static lighting on models (CL_ParseEntityLump)
game now uses current mode as title everywhere (window title, server title, etc), so it would say 'DarkPlaces-Hipnotic' for example
added Draw_AdditiveString variant of Draw_String, switchs to additive blending and back to alpha afterward
engineversion string is now generated in sys_shared
major rewrite of transpolyrender, now uses glDrawElements (with batching of same texture/mode) and array locking
transpolyparticle added to quickly add particles to transpoly list (30% or so savings)
split wallpolyrender into two pieces, first renders walls, second renders fog over them, decals are rendered between the two, so decals are now fogged
added field of vision distortion when underwater (in MYgluPerspective)
changed gl_lightmapalign to align to the specified byte boundary instead of pixel boundary, and removed NVIDIA mentions (it is not their problem, it is a matter of the texture unpack alignment, but I stuck with 4 byte alignment because it is likely faster for most people)
fixed animating textures
rearranged a little bmodel code (probably no effect)
got rid of r_solidworldnode and r_pvsworldnode cvars (only the fastest choices are available now)
screenshots are now corrected to match lighthalf if it is being done using hardware gamma
removed some old unused cruft from host.c
added RGB gamma correction code to image.c
added VectorRandom to mathlib.h
model skins are no longer mipmapped by default (r_mipskins 0, but this is saved in configs so most people might not notice) because quake skins were not designed for it, and it is a 25% texture memory use increase on model skins
removed old unused Mod_FloodFillSkin code
transparent textures no longer clip other geometry in the hidden surface removal (ouch this was a bug)
maps should be able to use engine fields without the mod knowing about them now (alpha, etc), engine fields are appended to the list of progs fields
particle and decal textures are now all stored in one 'particle font' texture, for a rather hefty speed gain (no texture switchs)
all particles are now alpha blended (additive wasn't necessary on them, but is still available), to kill off state changes
new splash effect from raindrops
added a few bithacking float optimizations here and there (most with alternates if you define SLOWMATH)
new explosion effect (on by default, but a major speed drain, turn off with r_particles_explosions 0)
particle textures are now all in one image (a 'particle font'), massive speed gains with mixed particle types
all particles are alpha blend now (additive still supported, just not used), for more speed gains
particles now use 24bit RGB colors, rather than palette colors (the quake palette has been included however, because many particles still use it)
a lot of old cruft has been removed from r_part
ui items can now be strings rather than pics (actually they can be both, but I have not found a real use for this, perhaps a second draw location needs to be added for the string, so a button could have a label centered on it)
unfinished X11 gamma ramp support (need to allocate colors before setting them, haven't figured this out yet)
changed pitch range in GLX to let you look straight up and down, like in wgl version
mostly redesigned animation interpolation management code (R_LerpUpdate is now CL_LerpUpdate and performed on all network entities, R_LerpAnimation has been tweaked to not crash on bmodels and is now automatically used on all visible entities in the renderer, lerping info has has been split out of entity_render_t into entity_persistent_t so that entity_render_t contains no persistent data)
renderer now only uses entity_render_t structures
renderer now uses only currentrenderentity, and rarely passes individual properties around
cleaned out some old global variables relating to rendering
moved most of glquake.h to render.h
envmap is now actually a vaguely useful command (renders cubic environment map images of the current scene, changed to write tga images rather than raw rgba, and take a basename to use, and name them like skyboxes expect, and place them in the env directory)
many things that should be private to a particular file have been marked static
models now contain a SERAddEntity function (to add themselves to the SER clipping list to verify visibility)
models now contain DrawEarly and DrawLate functions (to render before and after wallpoly/decals/skypoly/etc, respectively)
dlight management functions moved out of cl_main and into cl_light
rewrote RelinkStaticEntities (does the same, just cleaner)
renamed RelinkEntities to RelinkNetworkEntities, split out LerpPlayerVelocity, and made a RelinkEntities function which calls the various functions
rewrote or altered portions of RelinkNetworkEntities relating to origin
muzzleflash lights are now clipped to keep them out of walls
fixed up code relating to vid.conwidth/height and vid.width/height (which is now gone, converted to vid.conwidth/height) and renamed glx/gly/glwidth/glheight to vid.realx/y/width/height (updated each frame using GL_BeginRendering)
rewrote most (all?) code relating to r_refdef, it is now always recalculated as well
dynamic lights will only update a lightmap if they actually alter it (optimization)
models now have 3 bounding boxes, used depending on angles (normal, yaw rotation only, and full rotation)
bmodel bounding boxes are recalculated from vertices
server now uses model bounding box instead of entity bounding box for visibility testing (since entity bounding box is often smaller)
server no longer portal-visibility checks entities because it was FAR too slow (sv_vischeckentities is still available though)
gl_rsurf code now relies on there being a currentrenderentity (even if it is cl.worldent.render), R_SetupWorldEnt added to avoid duplicate code for this
engine no longer has a version number, only build number
makefile now uses buildnum (as was originally intended) to increment build number every time it is compiled, build numbers will be rising rapidly from now on
timedemos will now force up console instantly
rocket trails are more dense
renamed VectorMA (function) to VectorMASlow, renamed VectorMAQuick (#define) to VectorMA, don't know why I had changed it before, had already cleaned up the parameter issues where it is used
converted most of lighting in decal code to integer
added support for all sprite types (untested)

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

21 years agoreenabled some invisible entity checking (probably no difference)
lordhavoc [Mon, 12 Nov 2001 19:33:33 +0000 (19:33 +0000)]
reenabled some invisible entity checking (probably no difference)

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

21 years agoadded comments about use of the functions, and regrouped engine-use-only ones to...
lordhavoc [Mon, 12 Nov 2001 15:52:13 +0000 (15:52 +0000)]
added comments about use of the functions, and regrouped engine-use-only ones to avoid confusion

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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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