20 years agorearranged r_speeds report a bit, and split up reporting of meshtris into normal...
lordhavoc [Sun, 3 Feb 2002 10:40:46 +0000 (10:40 +0000)]
rearranged r_speeds report a bit, and split up reporting of meshtris into normal and transparent categories, also displays number of meshs of each type
made byte color array format work (byte format is very slightly faster than float)
disabled float color array format to save some memory
added gl_mesh_sorttransbymesh cvar (default: on) to get a performance gain in mingled mesh conditions (by never mingling triangles of different meshs), this mode can batch render transparent triangles too (unlike the other two modes)
increased default maxtriangles to 8192

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

20 years agochanged back to profiling, with optimizations, and back to alsa 0.5 sound
lordhavoc [Sun, 3 Feb 2002 10:34:02 +0000 (10:34 +0000)]
changed back to profiling, with optimizations, and back to alsa 0.5 sound

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

20 years agofixed monster interpolation in normal quake, which makes dpcrush not lerped unfortunately
lordhavoc [Sun, 3 Feb 2002 10:32:34 +0000 (10:32 +0000)]
fixed monster interpolation in normal quake, which makes dpcrush not lerped unfortunately

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

20 years agopassing 0 time to CL_AllocDlight now gives a die time of 0, not cl.time + 0
lordhavoc [Sun, 3 Feb 2002 10:30:25 +0000 (10:30 +0000)]
passing 0 time to CL_AllocDlight now gives a die time of 0, not cl.time + 0

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

20 years agomuzzleflashs do not keep stacking up on consecutive frames now
lordhavoc [Sun, 3 Feb 2002 10:29:16 +0000 (10:29 +0000)]
muzzleflashs do not keep stacking up on consecutive frames now

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

20 years agomoved viewmodel rendering to avoid polluting the main model rendering time
lordhavoc [Sun, 3 Feb 2002 10:27:54 +0000 (10:27 +0000)]
moved viewmodel rendering to avoid polluting the main model rendering time

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

20 years agoremoved some old commented out code
lordhavoc [Sun, 3 Feb 2002 10:26:48 +0000 (10:26 +0000)]
removed some old commented out code

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

20 years agolights should not decay now when console is down (pausing game), and cleaned up sound...
lordhavoc [Sun, 3 Feb 2002 10:25:45 +0000 (10:25 +0000)]
lights should not decay now when console is down (pausing game), and cleaned up sound update call to not use renderer variables

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

20 years agochanged explosion color calculations, they look much better now
lordhavoc [Sun, 3 Feb 2002 10:24:02 +0000 (10:24 +0000)]
changed explosion color calculations, they look much better now

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

20 years agomade coronas small and intense, much more noticable now
lordhavoc [Sun, 3 Feb 2002 10:23:09 +0000 (10:23 +0000)]
made coronas small and intense, much more noticable now

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

20 years agocoronas now scale with the light radius
lordhavoc [Sat, 2 Feb 2002 18:58:01 +0000 (18:58 +0000)]
coronas now scale with the light radius

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

20 years agocgame.c:60: warning: implicit declaration of function `memset', fixed
knghtbrd [Fri, 1 Feb 2002 15:28:42 +0000 (15:28 +0000)]
cgame.c:60: warning: implicit declaration of function `memset', fixed

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

20 years agocgamevm.h:11:6: no newline at end of file, fixed.
knghtbrd [Fri, 1 Feb 2002 15:22:46 +0000 (15:22 +0000)]
cgamevm.h:11:6: no newline at end of file, fixed.

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

20 years agoadded gib shower effect, they leave no trails but make blood marks where they hit...
lordhavoc [Fri, 1 Feb 2002 11:40:21 +0000 (11:40 +0000)]
added gib shower effect, they leave no trails but make blood marks where they hit...  (note: this is still highly experimental and cgame might be removed at some point, and no mods use this anyway)

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

20 years agoadded CGVM_Stain function
lordhavoc [Fri, 1 Feb 2002 11:37:41 +0000 (11:37 +0000)]
added CGVM_Stain function

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

20 years agoremoved unnecessary if in setting up divide table for dlighting
lordhavoc [Fri, 1 Feb 2002 09:22:28 +0000 (09:22 +0000)]
removed unnecessary if in setting up divide table for dlighting

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

20 years agoRemoved warnings in MSVC6. Updated the DSP file.
molivier [Fri, 1 Feb 2002 07:20:26 +0000 (07:20 +0000)]
Removed warnings in MSVC6. Updated the DSP file.

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

20 years agogot rid of buildnumber.c and buildnum program, now uses builddate.c (touched each...
lordhavoc [Thu, 31 Jan 2002 16:41:59 +0000 (16:41 +0000)]
got rid of buildnumber.c and buildnum program, now uses builddate.c (touched each time it is built to keep the date changing)
clientside TraceLine can now hit brush model entities (TraceLine_ScanForBModels updates list of entities to check)
added *highly experimental* clientside gamecode (currently embedded in the engine, just trying things out) which currently doesn't do anything really
made CL_RelinkEntities only called when the client is connected and there is a world model
added fractalnoisequick (variant of fractalnoise that does not allocate/free a temporary buffer, and to achieve this does not use the range remapping)
added stainmap effects (stained lightmaps), which will probably soon replace decals
spark showers now pay attention to the velocity in the TE_SPARKSHOWER packet (if the mod uses this), bullet impacts still have no velocity
added TE_PLASMABURN (combination of TE_SMALLFLASH and a stain on the walls)
added svc_cgame (DO NOT USE THIS, EXPERIMENTAL, but so is the cgame code itself)
Cmd_TokenizeString now uses a fixed size buffer instead of many little allocations (speedup by not having Z_Malloc/Z_Free happening constantly)
cvar code tries very hard to avoid reallocating string now
va() function now uses a cycling set of 8 string buffers to try to avoid conflicts
console logging no longer uses va()
reduced default mesh buffer size from 21760 triangles to 4096 (transparent triangles are costly enough it's not a good idea to exceed this anyway)
texture management code now uses 3 memory pools to give better memory reports according to type of data
R_UpdateTexture has better memory behavior on non-procedural textures now (replaces inputtexels if it has not been uploaded yet, otherwise just uploads it directly)
added -developer commandline option (which is rather hacky) to force developer on for entire startup process, to get logging before the configs are read
decals stick to brush model entities now
stains stick to embedded bmodels (ones that are part of the map, not ones instanced from outside like ammo boxes)
skingroups above 0 are not automatically precached now (if you have a lot of mods installed in your id1 directory, they tend to not use all the skins, which is wasteful)
starting a new game (from the singleplayer menu) forces deathmatch and coop to 0 now
lightmaps are precached again (can't remember why I ever disabled this)
changed VectorSet's parameter order to be more consistent with other vector ops
removed a duplicate registration of the vid_mouse cvar (in vid_glx.c)

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

20 years agoqsockets are now dynamically allocated/freed, this drops memory use by about 2mb
lordhavoc [Thu, 31 Jan 2002 12:16:59 +0000 (12:16 +0000)]
qsockets are now dynamically allocated/freed, this drops memory use by about 2mb

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

20 years agoFix for memset glibc bug crash
eviltypeguy [Wed, 30 Jan 2002 06:35:22 +0000 (06:35 +0000)]
Fix for memset glibc bug crash

(why would it read from PROT_WRITE only memory? silly thing...)

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

20 years agochanged free(dat) to Mem_Free(dat) (EWWW I HAD A FREE STILL??)
lordhavoc [Tue, 29 Jan 2002 07:10:28 +0000 (07:10 +0000)]
changed free(dat) to Mem_Free(dat) (EWWW I HAD A FREE STILL??)

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

20 years agoreplaced a bunch of one-line 3-statement while loops, with nicer looking one-line...
lordhavoc [Mon, 28 Jan 2002 09:09:03 +0000 (09:09 +0000)]
replaced a bunch of one-line 3-statement while loops, with nicer looking one-line for loops

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

20 years agofix problem with dynamic lights on lightmaps wider than 18 pixels (oops!)
lordhavoc [Sun, 27 Jan 2002 08:33:58 +0000 (08:33 +0000)]
fix problem with dynamic lights on lightmaps wider than 18 pixels (oops!)

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

20 years agohalved corona size
lordhavoc [Sun, 27 Jan 2002 07:58:52 +0000 (07:58 +0000)]
halved corona size

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

20 years agoadded coronas (glow) to dynamic lights
lordhavoc [Sun, 27 Jan 2002 00:16:17 +0000 (00:16 +0000)]
added coronas (glow) to dynamic lights

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

20 years agoadded gl_mesh_dupetransverts cvar (found it is a slowdown though)
lordhavoc [Sun, 27 Jan 2002 00:14:21 +0000 (00:14 +0000)]
added gl_mesh_dupetransverts cvar (found it is a slowdown though)
moved meshfarclip checking from R_Mesh_Draw to R_Mesh_Render

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

20 years agoadditive water
lordhavoc [Sat, 26 Jan 2002 23:36:03 +0000 (23:36 +0000)]
additive water
enabled transparency on world polygons (not a good idea in existing quake maps, but maybe someday...)

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

20 years agomade most particles additive (speedup in fog)
lordhavoc [Sat, 26 Jan 2002 23:33:42 +0000 (23:33 +0000)]
made most particles additive (speedup in fog)

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

20 years agomade explosions additive, softened edges (hacky but looks good enough), cleaned up...
lordhavoc [Sat, 26 Jan 2002 23:30:50 +0000 (23:30 +0000)]
made explosions additive, softened edges (hacky but looks good enough), cleaned up some of the physics

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

20 years agochanged most #define macros to use (,,,) format instead of {;;;} so they will gobble...
lordhavoc [Sat, 26 Jan 2002 23:27:07 +0000 (23:27 +0000)]
changed most #define macros to use (,,,) format instead of {;;;} so they will gobble a ; like a normal function

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

20 years agogot rid of cl_glowinglightning cvar, lightning no longer glows
lordhavoc [Sat, 26 Jan 2002 23:25:09 +0000 (23:25 +0000)]
got rid of cl_glowinglightning cvar, lightning no longer glows

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

20 years agomade "entities" command show scale and alpha
lordhavoc [Sat, 26 Jan 2002 23:24:13 +0000 (23:24 +0000)]
made "entities" command show scale and alpha
made rocket glow a little brighter (25%)

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

20 years agorenamed R_GetFragmentLocation to R_FragmentLocation
lordhavoc [Sat, 26 Jan 2002 23:18:22 +0000 (23:18 +0000)]
renamed R_GetFragmentLocation to R_FragmentLocation

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

20 years agodue to Mercury's insistance you can disable bobbing by using cl_bobcycle == 0 as...
lordhavoc [Sat, 26 Jan 2002 02:20:13 +0000 (02:20 +0000)]
due to Mercury's insistance you can disable bobbing by using cl_bobcycle == 0 as well as cl_bob == 0 (cl_bobcycle == 0 causes NaN bob)

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

20 years agoUpdated MSVC6 project files. Vanilla MSVC6 doesn't know the GL_TABLE_TOO_LARGE error...
molivier [Fri, 25 Jan 2002 12:33:35 +0000 (12:33 +0000)]
Updated MSVC6 project files. Vanilla MSVC6 doesn't know the GL_TABLE_TOO_LARGE error... Strange.

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

20 years agoadded back intermission overlays (oops)
lordhavoc [Fri, 25 Jan 2002 08:31:35 +0000 (08:31 +0000)]
added back intermission overlays (oops)

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

20 years agoadded cl_screen.c/h (eventually most 2D stuff should be moved here)
lordhavoc [Fri, 25 Jan 2002 00:45:55 +0000 (00:45 +0000)]
added cl_screen.c/h (eventually most 2D stuff should be moved here)
removed view.h (merged into client.h)
cleaned up the animation interpolation code (CL_LerpUpdate) a bit more
increased interpolation 'teleport' tolerance from 400 units to 1000 units per frame
changed calls to Mod_ForName to not use checkdisk (except for viewthing model changes and map changes)
added viewent to r_refdef
moved v_blend to r_refdef
all 2D art now goes through Draw_CachePic
cachepic replaced qpic (in all non-wad code)
moved all engine generated pics (mousepointer, crosshairs) to gl_draw.c (they are called by Draw_CachePic)
cachepic now uses a hash lookup instead of just a string search
added drawqueue to r_refdef
all 2D art now goes through DrawQ_ functions (drawqueue)
DrawQ_String now stretchs the character texture a tiny bit, and always uses default filtering
cleaned out some old cruft in console drawing code
fixed some silly bugs in showfps
made showfps display use only 4 characters, and made the text larger, and moved it down a little
moved showfps from gl_screen.c to sbar.c
moved Draw_ConsoleBackground to console.c
removed drawinput parameter from Con_DrawConsole (it was always true)
c_alias_polys now counts all meshs rendered (a model may be rendered multiple times), not just the total number of triangles in the model, much more accurate
r_speeds2 renamed to r_speeds
disabled all Mem_CheckSentinelsGlobal calls during gameplay (they were wasting time)
r_speeds now displays time spent throughout SCR_UpdateScreen code, not just R_RenderView
frame is now rendered in 'finish begin render' order instead of 'begin render finish' order in SCR_Updatescreen - not sure if this is a speedup or not
BLOCK_SIZE in gl_textures.c renamed to block_size and now adjustable (r_max_scrapsize cvar), r_restart for changes to take effect, 1024 (default) or less recommended
menu, r_speeds, and showfps now have a darkened (50% black) background beneath them to improve readability
menu is now centered on the screen
menu text is now white
translatepic code now updates texture rather than constantly cache mismatching
cleaned up cshift code
cleaned up viewent setup code
W_GetLumpinfo failing to find a lump is no longer fatal
added R_Mesh_DrawDecal for the highly specialized task of adding decals/particles/sprites to the mesh system (trying to get a minor speed gain)
decals, particles, and sprites now use R_Mesh_DrawDecal

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

20 years agomoved CHECKGLERROR to detect errors *after* rather than before uploading a texture
lordhavoc [Tue, 22 Jan 2002 07:01:30 +0000 (07:01 +0000)]
moved CHECKGLERROR to detect errors *after* rather than before uploading a texture

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

20 years agomade lights half as bright
lordhavoc [Tue, 22 Jan 2002 06:58:49 +0000 (06:58 +0000)]
made lights half as bright

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

20 years agomake dedicated work again
lordhavoc [Tue, 22 Jan 2002 05:36:02 +0000 (05:36 +0000)]
make dedicated work again

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

20 years agofake answers for R_GetFragmentLocation when running dedicated
lordhavoc [Tue, 22 Jan 2002 05:34:21 +0000 (05:34 +0000)]
fake answers for R_GetFragmentLocation when running dedicated

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

20 years agomodels don't allocate a texture pool when running dedicated
lordhavoc [Tue, 22 Jan 2002 05:33:30 +0000 (05:33 +0000)]
models don't allocate a texture pool when running dedicated

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

20 years agomore thorough checking of 'this should never happen' cases
lordhavoc [Tue, 22 Jan 2002 05:32:02 +0000 (05:32 +0000)]
more thorough checking of 'this should never happen' cases

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

20 years agoflush unused models when running dedicated server
lordhavoc [Tue, 22 Jan 2002 05:31:25 +0000 (05:31 +0000)]
flush unused models when running dedicated server

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

20 years agofixed 4 warnings in MSVC related to assigning -1000 to unsigned shorts
lordhavoc [Tue, 22 Jan 2002 04:46:52 +0000 (04:46 +0000)]
fixed 4 warnings in MSVC related to assigning -1000 to unsigned shorts

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

20 years agoremoved a lot of memory checks now that it works again
lordhavoc [Mon, 21 Jan 2002 03:02:15 +0000 (03:02 +0000)]
removed a lot of memory checks now that it works again

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

20 years agofix for bug in memory checking
lordhavoc [Mon, 21 Jan 2002 02:57:28 +0000 (02:57 +0000)]
fix for bug in memory checking

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

20 years agoyet more memory testing
lordhavoc [Mon, 21 Jan 2002 02:50:07 +0000 (02:50 +0000)]
yet more memory testing

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

20 years agochanged way windings are allocated, may fix memory corruption bug on MSVC
lordhavoc [Mon, 21 Jan 2002 02:39:08 +0000 (02:39 +0000)]
changed way windings are allocated, may fix memory corruption bug on MSVC

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

20 years agoadded some memory corruption checks, trying to find a bug
lordhavoc [Mon, 21 Jan 2002 02:09:24 +0000 (02:09 +0000)]
added some memory corruption checks, trying to find a bug

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

20 years agoimproved error reporting on memory functions
lordhavoc [Sat, 19 Jan 2002 23:22:15 +0000 (23:22 +0000)]
improved error reporting on memory functions
memlist command now has an optional 'all' parameter to list the individual allocations inside pools

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

20 years agorearranged error checking during portal building so it will only Host_Error when...
lordhavoc [Sat, 19 Jan 2002 21:36:53 +0000 (21:36 +0000)]
rearranged error checking during portal building so it will only Host_Error when an error occurs, and changed tempmempool allocations for portal processing to use the loadmodel mempool so portals can be freed after an error (using modelflush)

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

20 years agomoved cl_visedicts to r_refdef.entities
lordhavoc [Sat, 19 Jan 2002 00:31:58 +0000 (00:31 +0000)]
moved cl_visedicts to r_refdef.entities

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

20 years agocleaned up a lot of particle rendering properties (mainly related to rain code),...
lordhavoc [Fri, 18 Jan 2002 20:33:38 +0000 (20:33 +0000)]
cleaned up a lot of particle rendering properties (mainly related to rain code), rain looks nice now.
added depthdisable to rmeshinfo_t
gl_backend now uses glDrawRangeElements on non-win32 (need to use dynamic GL binding to get it on win32), nice speedup
rearranged r_speeds2 time reporting code, now times more things (in gl_screen.c especially)

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

20 years agominor optimization to fogged decal rendering
lordhavoc [Fri, 18 Jan 2002 20:21:55 +0000 (20:21 +0000)]
minor optimization to fogged decal rendering

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

20 years agoview model is no longer fully fogged (it was a divide by zero)
lordhavoc [Fri, 18 Jan 2002 20:20:08 +0000 (20:20 +0000)]
view model is no longer fully fogged (it was a divide by zero)

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

20 years agogrenades no longer stick when you fire down a slope
lordhavoc [Fri, 18 Jan 2002 20:17:58 +0000 (20:17 +0000)]
grenades no longer stick when you fire down a slope

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

20 years agoFixed a couple of warnings on MSVC6
molivier [Thu, 17 Jan 2002 17:38:45 +0000 (17:38 +0000)]
Fixed a couple of warnings on MSVC6

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

20 years agoremoved no longer used static light parsing code
lordhavoc [Thu, 17 Jan 2002 01:30:08 +0000 (01:30 +0000)]
removed no longer used static light parsing code

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

20 years agomade directional static lighting work, then disabled it because it is not practical...
lordhavoc [Thu, 17 Jan 2002 01:22:52 +0000 (01:22 +0000)]
made directional static lighting work, then disabled it because it is not practical without reliable data from the lighting utility

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

20 years agoremoved (experimental, and broken) particles with polygonal explosion (after some...
lordhavoc [Thu, 17 Jan 2002 01:09:28 +0000 (01:09 +0000)]
removed (experimental, and broken) particles with polygonal explosion (after some testing I found it looked lousy)
fixed particles disappearing when using slowmo 0

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

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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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