]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
18 years agoreplaced all references to vid.conwidth and vid.conheight with vid_conwidth.integer...
havoc [Fri, 13 May 2005 23:41:24 +0000 (23:41 +0000)]
replaced all references to vid.conwidth and vid.conheight with vid_conwidth.integer and vid_conheight.integer
replaced all references to vid.realx/vid.realy with 0
replaced all references to vid.realwidth and vid.realheight with vid.width and vid.height
replaced current_vid_* variables with vid. fields (vid.width, vid.height, vid.bitsperpixel, vid.fullscreen)
vid_glx.c: replaced scr_width/height with vid.width/height
vid_wgl.c: replaced window_center_x/y with calculations as needed, and replaced window_width/height with vid.width/height, and some other minor cleanups
removed VID_GetWindowSize function

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

18 years agomore clean up of IN_Activate, added cl_ignoremousemove to merge some code
havoc [Fri, 13 May 2005 23:10:38 +0000 (23:10 +0000)]
more clean up of IN_Activate, added cl_ignoremousemove to merge some code

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

18 years agocorrected envmap saving for ft/rt/bk/lf/up/dn layout (px/py/nx/ny/pz/nz layout alread...
havoc [Fri, 13 May 2005 22:03:51 +0000 (22:03 +0000)]
corrected envmap saving for ft/rt/bk/lf/up/dn layout (px/py/nx/ny/pz/nz layout already worked fine) and disabled gamma correction on envmap saves

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

18 years agofix Mod_BuildAliasSkinsFromSkinFiles to work with the new skin layout, this should...
havoc [Fri, 13 May 2005 21:30:26 +0000 (21:30 +0000)]
fix Mod_BuildAliasSkinsFromSkinFiles to work with the new skin layout, this should fix md3 skin file crashes

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

18 years agofix a warning
havoc [Fri, 13 May 2005 21:27:58 +0000 (21:27 +0000)]
fix a warning

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

18 years agoGAME_NEXUIZ no longer loads a number of gfx/ pics that it does not use
havoc [Fri, 13 May 2005 21:27:24 +0000 (21:27 +0000)]
GAME_NEXUIZ no longer loads a number of gfx/ pics that it does not use

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

18 years agoupgraded both QuakeC VMs to use a table of negative string indices for all dynamic...
havoc [Fri, 13 May 2005 19:41:09 +0000 (19:41 +0000)]
upgraded both QuakeC VMs to use a table of negative string indices for all dynamic strings, this should make everything work on 64bit systems

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

18 years agofinished model/map rendering merge, model renderer has been completely removed
havoc [Fri, 13 May 2005 03:24:13 +0000 (03:24 +0000)]
finished model/map rendering merge, model renderer has been completely removed
model_t num_textures now lies a bit to keep things simple, it equals num_surfaces on models, even if there are multiple skins, in data_textures these extra textures really do exist even though num_textures does not count them (this was done so that UpdateAllTextureInfo won't crash trying to index later skins on the later skins themselves)

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

18 years ago375 (-1)
havoc [Thu, 12 May 2005 21:39:31 +0000 (21:39 +0000)]
375 (-1)

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

18 years agolabeled todo items (at least ones not done yet) with a category before the program...
havoc [Thu, 12 May 2005 20:44:12 +0000 (20:44 +0000)]
labeled todo items (at least ones not done yet) with a category before the program name, to prioritize bugfixes over changes and features and so on within a difficulty rating
cleaned out a lot of stale or duplicate todo items
376 (-20)

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

18 years ago396
havoc [Thu, 12 May 2005 19:00:35 +0000 (19:00 +0000)]
396

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

18 years agoclear sounds before shutting down
havoc [Thu, 12 May 2005 18:55:32 +0000 (18:55 +0000)]
clear sounds before shutting down

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

18 years agochanged changed commandline history behavior to be more sane
havoc [Thu, 12 May 2005 17:53:29 +0000 (17:53 +0000)]
changed changed commandline history behavior to be more sane

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

18 years ago-Changed VM_precache_pic to check CachePic for successful loading of the pictures.
black [Wed, 11 May 2005 20:26:12 +0000 (20:26 +0000)]
-Changed VM_precache_pic to check CachePic for successful loading of the pictures.
 (The old check hasnt worked because CachePic always returns a valid pic pointer.)

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

18 years agothe merging of alias and bsp model rendering begins... purely cosmetic changes in...
havoc [Wed, 11 May 2005 18:22:48 +0000 (18:22 +0000)]
the merging of alias and bsp model rendering begins...  purely cosmetic changes in this first step
merged model_alias_t into model_t and removed alias prefixes from those fields
merged model_brush_t surface and texture stuff into model_t (num_surfaces, num_textures, etc)
made alias model code use model_t data_surfaces instead of alias meshes

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

18 years agosome changes and cleanups to SV_FlyMove, turned off sv_newflymove by default (it...
havoc [Wed, 11 May 2005 18:19:48 +0000 (18:19 +0000)]
some changes and cleanups to SV_FlyMove, turned off sv_newflymove by default (it just doesn't work right)

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

18 years agoadded VectorReflect
havoc [Wed, 11 May 2005 18:19:00 +0000 (18:19 +0000)]
added VectorReflect

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

18 years agoAllocated temporary big buffers in R_BuildDetailTextures instead of having them on...
molivier [Wed, 11 May 2005 11:12:01 +0000 (11:12 +0000)]
Allocated temporary big buffers in R_BuildDetailTextures instead of having them on the stack (it caused some systems to crash)

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

18 years agoadded sv_gameplayfix_blowupfallenzombies and sv_gameplayfix_findradiusdistancetobox...
havoc [Tue, 10 May 2005 18:39:51 +0000 (18:39 +0000)]
added sv_gameplayfix_blowupfallenzombies and sv_gameplayfix_findradiusdistancetobox cvars (to allow these changes to be disabled)

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

18 years agofix inverted normalmaps produced from bumpmaps (directly loaded normalmaps are fine)
havoc [Tue, 10 May 2005 00:30:52 +0000 (00:30 +0000)]
fix inverted normalmaps produced from bumpmaps (directly loaded normalmaps are fine)

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

18 years agopatch from Willis for some map name changes in Transfusion
havoc [Mon, 9 May 2005 23:52:40 +0000 (23:52 +0000)]
patch from Willis for some map name changes in Transfusion

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

18 years agochanged R_NewExplosion check for dead explosions to check time instead of alpha ...
havoc [Mon, 9 May 2005 22:51:36 +0000 (22:51 +0000)]
changed R_NewExplosion check for dead explosions to check time instead of alpha (may fix a bug)

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

18 years ago389 (-2)
havoc [Mon, 9 May 2005 20:43:17 +0000 (20:43 +0000)]
389 (-2)

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

18 years agofix VID_Shutdown ungrabs
havoc [Mon, 9 May 2005 20:26:27 +0000 (20:26 +0000)]
fix VID_Shutdown ungrabs

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

18 years ago391 (-2)
havoc [Mon, 9 May 2005 20:12:36 +0000 (20:12 +0000)]
391 (-2)

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

18 years agochanged blaze.mindphukd.org back to an ip address because the hostname isn't resolvin...
havoc [Mon, 9 May 2005 18:40:50 +0000 (18:40 +0000)]
changed blaze.mindphukd.org back to an ip address because the hostname isn't resolving but the ip works fine

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

18 years agomajor cleanup of input code - CL_Move replaces most of IN_Move, IN_Commands, many...
havoc [Mon, 9 May 2005 15:56:41 +0000 (15:56 +0000)]
major cleanup of input code - CL_Move replaces most of IN_Move, IN_Commands, many internal platform functions refactored to clean up platform code

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

18 years agoremove qwgl externs, as they are not used outside vid_wgl.c
havoc [Mon, 9 May 2005 15:51:19 +0000 (15:51 +0000)]
remove qwgl externs, as they are not used outside vid_wgl.c

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

18 years agofix a problem with stenciltwoside introduced by recent changes
havoc [Mon, 9 May 2005 15:48:07 +0000 (15:48 +0000)]
fix a problem with stenciltwoside introduced by recent changes

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

18 years agofixed problems in the Host_Init Cbuf_InsertText stuff (by changing it to Cbuf_AddText...
havoc [Mon, 9 May 2005 13:03:18 +0000 (13:03 +0000)]
fixed problems in the Host_Init Cbuf_InsertText stuff (by changing it to Cbuf_AddText, and some other cleanups)
added Host_StartVideo to a few more places

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

18 years agochanged 3 occurences of very if (developer.integer) Con_Print code to Con_DPrint
havoc [Mon, 9 May 2005 12:58:05 +0000 (12:58 +0000)]
changed 3 occurences of very if (developer.integer) Con_Print code to Con_DPrint

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

18 years agoimplemented caching of DNS names in lhnet.c
havoc [Sun, 8 May 2005 19:57:24 +0000 (19:57 +0000)]
implemented caching of DNS names in lhnet.c
changed sv_masterextra* servers back to DNS names (but kept IP addresses as comments, note the dpmaster.deathmask.net IP has changed)

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

18 years agoS_LocalSound now uses ATTN_NONE, so menu sounds and such will no longer be centered...
havoc [Sun, 8 May 2005 18:32:46 +0000 (18:32 +0000)]
S_LocalSound now uses ATTN_NONE, so menu sounds and such will no longer be centered at world origin

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

18 years agorewrote the notes on the Creative patent after re-reading it
havoc [Sun, 8 May 2005 18:28:32 +0000 (18:28 +0000)]
rewrote the notes on the Creative patent after re-reading it
fixed my incomplete StencilOp changes (reverted back to the way it was before)

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

18 years agorevised a number of terminology notes at the beginning of r_shadow.c, including notes...
havoc [Sun, 8 May 2005 13:22:50 +0000 (13:22 +0000)]
revised a number of terminology notes at the beginning of r_shadow.c, including notes about the Creative Labs patent on the Carmack's Reverse technique

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

18 years agoadded rmesh_t and R_Mesh_AddVertex3f, R_Mesh_AddPolygon3f, R_Mesh_AddBrushMeshFromPla...
havoc [Sun, 8 May 2005 12:59:38 +0000 (12:59 +0000)]
added rmesh_t and R_Mesh_AddVertex3f, R_Mesh_AddPolygon3f, R_Mesh_AddBrushMeshFromPlanes functions
R_Shadow_ScissorForBBox now uses R_Mesh_AddBrushMeshFromPlanes function to get an exact clipped box-brush vertex set for calculating scissor area, this should reduce the scissor area used in some cases compared to the old hacky method
added nearclip plane to frustum[] array (only used by R_Shadow_ScissorForBBox)

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

18 years agovarious printf/fprintf calls are now Con_Printf, and some other minor cleanups
havoc [Sun, 8 May 2005 10:42:51 +0000 (10:42 +0000)]
various printf/fprintf calls are now Con_Printf, and some other minor cleanups

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

18 years agoPR_Alloc/Free/FreeAll now report filename/fileline of their caller in the Mem_ calls...
havoc [Sun, 8 May 2005 10:42:09 +0000 (10:42 +0000)]
PR_Alloc/Free/FreeAll now report filename/fileline of their caller in the Mem_ calls, for better readability of "memlist all" reports

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

18 years agorearranged mouse grabbing rules again to force grabbing when fullscreen (for some...
havoc [Sat, 7 May 2005 18:07:20 +0000 (18:07 +0000)]
rearranged mouse grabbing rules again to force grabbing when fullscreen (for some reason it isn't the active window)

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

18 years agofix a crash in portal clipping code (forgot to include polygon.h)
havoc [Sat, 7 May 2005 17:53:47 +0000 (17:53 +0000)]
fix a crash in portal clipping code (forgot to include polygon.h)

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

18 years agoportal code now uses Polygon_DivideF instead of its own polygon clipper
havoc [Sat, 7 May 2005 14:51:49 +0000 (14:51 +0000)]
portal code now uses Polygon_DivideF instead of its own polygon clipper

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

18 years agominor rearrangement of Render_Init
havoc [Fri, 6 May 2005 20:03:18 +0000 (20:03 +0000)]
minor rearrangement of Render_Init

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

18 years agohush "Unknown command" warnings during startup
havoc [Fri, 6 May 2005 20:01:55 +0000 (20:01 +0000)]
hush "Unknown command" warnings during startup

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

18 years agorenamed VID_Open to VID_Start, inlined VID_Close ito eliminate the only call to it
havoc [Fri, 6 May 2005 20:00:53 +0000 (20:00 +0000)]
renamed VID_Open to VID_Start, inlined VID_Close ito eliminate the only call to it

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

18 years agoreorganized Palette_Init code
havoc [Fri, 6 May 2005 19:58:33 +0000 (19:58 +0000)]
reorganized Palette_Init code

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

18 years agoplayvideo and cd loop/cd play commands now call Host_StartVideo (this fixes a crash...
havoc [Fri, 6 May 2005 19:43:18 +0000 (19:43 +0000)]
playvideo and cd loop/cd play commands now call Host_StartVideo (this fixes a crash and missing menu music respectively in Nexuiz)

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

18 years agofix a misplaced variable
havoc [Fri, 6 May 2005 12:31:05 +0000 (12:31 +0000)]
fix a misplaced variable

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

18 years agochanged Host_Init to execute configs only once
havoc [Fri, 6 May 2005 11:37:35 +0000 (11:37 +0000)]
changed Host_Init to execute configs only once
cleaned up Host_Init (and related functions like Con_Init, COM_Init, Cbuf_Init, etc) a great deal
now uses host_framecount >= 3 checks instead of host_loopactive or host_initialized checks, this should fix any problems with crashes erasing config.cfg
VID_Open and friends are now called from Host_StartVideo which is called by SCR_BeginLoadingPlaque (such as by SV_SpawnServer) as well as the end of Host_Init, this only calls them the first time it is called, so it can be called during config parsing (such as +map start on the commandline)
moved sys_usetimegettime and dedicated server console opening in sys_wgl.c into Sys_InitConsole and Sys_Init_Commands functions called by Host_Init
merged Sys_Shared_EarlyInit and Sys_Shared_LateInit into Host_Init
got rid of sys_usetimegettime (windows-only) cvar in sys_sdl.c
changed type of a number of vid_* variables from int to qboolean
renamed vidmode_active to vid_isfullscreen in vid_glx.c for more code consistency
fixed a bug in vid_glx.c that made it grab the mouse/keyboard even when it was not the active window
no longer grabs mouse while playing demos in a window

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

18 years agomoved mod_shared.c detail texture and distortion texture stuff to gl_rmain.c (renamed...
havoc [Fri, 6 May 2005 11:28:31 +0000 (11:28 +0000)]
moved mod_shared.c detail texture and distortion texture stuff to gl_rmain.c (renamed mod_shared_* to r_texture_*)
got rid of unused mod_q1bsp_novis array
moved Mod_Q1BSP_Collision_Init into the boxhull code (which isn't even used anyway)
made r_restart reload models (as was intended) by making Mod_UnloadModel preserve the ->use field

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

18 years agochanged Mem_FreePool and Mem_EmptyPool to report their caller's filename/fileline...
havoc [Fri, 6 May 2005 11:27:18 +0000 (11:27 +0000)]
changed Mem_FreePool and Mem_EmptyPool to report their caller's filename/fileline when Mem_Free detects an error

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

18 years agoattachments now inherit RENDER_VIEWMODEL from their parent (they already inherited...
havoc [Fri, 6 May 2005 08:58:29 +0000 (08:58 +0000)]
attachments now inherit RENDER_VIEWMODEL from their parent (they already inherited RENDER_EXTERIORMODEL)

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

18 years agoremoved a clear of names in the render modules init code, this allows it to be called...
havoc [Fri, 6 May 2005 06:09:33 +0000 (06:09 +0000)]
removed a clear of names in the render modules init code, this allows it to be called AFTER some modules are registered (for a minor cleanup of the Host_Init code)

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

18 years agoenabled SDL builds by default (in addition to cl and dedicated)
havoc [Fri, 6 May 2005 04:29:25 +0000 (04:29 +0000)]
enabled SDL builds by default (in addition to cl and dedicated)

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

18 years agoadded cl.movement_velocity to allow view bobbing to match up with cl_movement
havoc [Fri, 6 May 2005 00:36:07 +0000 (00:36 +0000)]
added cl.movement_velocity to allow view bobbing to match up with cl_movement
fixed some bugs in cl_movement timing, it now applies input to the next move not the current one, making it work properly (assuming cl_movement_latency is exact)

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

18 years agohush some texture loading warnings in dedicated servers (thanks to Biomass for report...
havoc [Thu, 5 May 2005 14:24:24 +0000 (14:24 +0000)]
hush some texture loading warnings in dedicated servers (thanks to Biomass for reporting this)

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

18 years agoadded some commented out code that can make a log of stereo wav sounds loaded
havoc [Thu, 5 May 2005 12:52:07 +0000 (12:52 +0000)]
added some commented out code that can make a log of stereo wav sounds loaded

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

18 years agocl_netlocalping now adds only half as much lag, so that the number specified is rough...
havoc [Thu, 5 May 2005 12:49:17 +0000 (12:49 +0000)]
cl_netlocalping now adds only half as much lag, so that the number specified is roughly what it will achieve

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

18 years ago-Changed the SDL window icon back to DP's icon.
black [Thu, 5 May 2005 12:48:43 +0000 (12:48 +0000)]
-Changed the SDL window icon back to DP's icon.
-Cmds, Cvars and Aliases are now inserted at the right alphanumerical
 position on creation.
-Fixed a bug in the serverlist which caused it to not mask entries properly.

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

18 years agochanged cl_movement_latency to be in milliseconds rather than seconds (less confusing...
havoc [Wed, 4 May 2005 20:14:06 +0000 (20:14 +0000)]
changed cl_movement_latency to be in milliseconds rather than seconds (less confusing because of ping being milliseconds)
added code to remove 'impossibly far into the future' movement queue items (useful if latency is set to a high value initially and then lower, this will remove the stale high latency items)

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

18 years agomoved a Cvar_RegisterVariable call to ensure that it happens before config parsing
havoc [Wed, 4 May 2005 14:07:47 +0000 (14:07 +0000)]
moved a Cvar_RegisterVariable call to ensure that it happens before config parsing

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

18 years agofixed a stupid bug in PF_te_customflash that made it send lifetime as /256 (should...
havoc [Wed, 4 May 2005 10:26:36 +0000 (10:26 +0000)]
fixed a stupid bug in PF_te_customflash that made it send lifetime as /256 (should've been *256)

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

18 years agoforgot to add 1 to radius byte in parsing TE_CUSTOMFLASH, probably not noticable...
havoc [Wed, 4 May 2005 09:55:13 +0000 (09:55 +0000)]
forgot to add 1 to radius byte in parsing TE_CUSTOMFLASH, probably not noticable though

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

18 years agoremoved .lmp suffix from a number of DrawQ_Pic calls, which should cure the gfx/net...
havoc [Wed, 4 May 2005 09:51:41 +0000 (09:51 +0000)]
removed .lmp suffix from a number of DrawQ_Pic calls, which should cure the gfx/net.lmp not found warnings

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

18 years ago393 (+53)
havoc [Tue, 3 May 2005 21:49:25 +0000 (21:49 +0000)]
393 (+53)

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

18 years agocleaned up portions of rtlighting system, allowing GLSL lighting to use very few...
havoc [Tue, 3 May 2005 18:33:21 +0000 (18:33 +0000)]
cleaned up portions of rtlighting system, allowing GLSL lighting to use very few state changes, for a 6% speed gain on my system

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

18 years agofix a bug that made rtlighting crash (thanks to Vic for reporting this)
havoc [Tue, 3 May 2005 18:30:12 +0000 (18:30 +0000)]
fix a bug that made rtlighting crash (thanks to Vic for reporting this)

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

18 years agoadded code for enabling GL_LINE_SMOOTH (antialiased lines) in r_showtris mode, but...
havoc [Tue, 3 May 2005 10:38:55 +0000 (10:38 +0000)]
added code for enabling GL_LINE_SMOOTH (antialiased lines) in r_showtris mode, but disabled because it wasn't a speed gain

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

18 years agodon't show extra time reports in r_speeds report when using r_showtris 1
havoc [Tue, 3 May 2005 10:36:20 +0000 (10:36 +0000)]
don't show extra time reports in r_speeds report when using r_showtris 1

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

18 years agoadded developer_texturelogging
havoc [Tue, 3 May 2005 05:06:41 +0000 (05:06 +0000)]
added developer_texturelogging
R_MarkEntities now updates r_refdef.worldentity visframe as well (for more internal consistency)

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

18 years agoa bit of cleanup
havoc [Sun, 1 May 2005 12:26:58 +0000 (12:26 +0000)]
a bit of cleanup

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

18 years agomoved r_shadow_ white and normal cubemaps to r_texture_
havoc [Sun, 1 May 2005 12:14:05 +0000 (12:14 +0000)]
moved r_shadow_ white and normal cubemaps to r_texture_

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

18 years agorelocated the CL_SendMove call to put it at the end of network parsing (and only...
havoc [Sat, 30 Apr 2005 07:14:37 +0000 (07:14 +0000)]
relocated the CL_SendMove call to put it at the end of network parsing (and only called if there was an svc_time message in this packet), this should greatly improve consistency of ping times and input sending (which was sometimes falling way behind with lag), no longer uses sys_ticrate to control input frequency
changed CL_TraceLine to CL_TraceBox and made it return a trace_t
worked on CL_ClientMovement function for clientside movement simulation (not working yet), this has many cl_movement* cvars associated with it which will be updated by the server at some point in the future
added (currently unused and not updated) cl_gravity and cl_slowmo cvars, which the server will be setting at some point in the future

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

18 years agomoved some Con_PrintToHistory code into Con_Print and reenabled talk.wav in GAME_NEXUIZ
havoc [Fri, 29 Apr 2005 02:40:37 +0000 (02:40 +0000)]
moved some Con_PrintToHistory code into Con_Print and reenabled talk.wav in GAME_NEXUIZ

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

18 years agoremoved an unused function I thought I removed in the previous commit
havoc [Sun, 24 Apr 2005 07:00:16 +0000 (07:00 +0000)]
removed an unused function I thought I removed in the previous commit

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

18 years agoslight cleanup of surface clipping code (got rid of a rather redundent function)
havoc [Sun, 24 Apr 2005 06:19:10 +0000 (06:19 +0000)]
slight cleanup of surface clipping code (got rid of a rather redundent function)
major bugfix to surface portal clipping, lights should hit all the right surfaces now

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

18 years agodon't apply dlights to opaque models (this was happening when flashblend is on)
havoc [Sun, 24 Apr 2005 05:24:30 +0000 (05:24 +0000)]
don't apply dlights to opaque models (this was happening when flashblend is on)
default dlight shadowing on

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

19 years agofixed CL_SendMove packet rate limiting to not have a heartattack when going from...
havoc [Sat, 23 Apr 2005 07:38:48 +0000 (07:38 +0000)]
fixed CL_SendMove packet rate limiting to not have a heartattack when going from singleplayer to multiplayer (this was causing the player to be stuck in place for a very long time)

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

19 years agoadded cl_capturevideo_sound (defaulted to 0) to allow enabling/disabling sound saving...
havoc [Thu, 21 Apr 2005 01:26:44 +0000 (01:26 +0000)]
added cl_capturevideo_sound (defaulted to 0) to allow enabling/disabling sound saving, with sound disabled you can save videos at a framerate your machine can't maintain (no sound sync to worry about)

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

19 years agoreimplemented rtlight portal culling (used for compiled rtlights, and can be used...
havoc [Wed, 20 Apr 2005 11:16:36 +0000 (11:16 +0000)]
reimplemented rtlight portal culling (used for compiled rtlights, and can be used for dlights but that is often a major speed loss)
added additional bounding box and triangle facing checks to rtlight compilation, triangles outside the box are no longer drawn

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

19 years agochanged rtlight compiled cluster list/pvs to leaf list/pvs to enable slightly more...
havoc [Wed, 20 Apr 2005 08:49:26 +0000 (08:49 +0000)]
changed rtlight compiled cluster list/pvs to leaf list/pvs to enable slightly more accurate culling

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

19 years agoenabled portals on q3bsp for a small (occasionally huge) fps increase
havoc [Wed, 20 Apr 2005 06:02:47 +0000 (06:02 +0000)]
enabled portals on q3bsp for a small (occasionally huge) fps increase

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

19 years agor_shadow_staticworldlights has mutated into r_shadow_realtime_world_compile, r_shadow...
havoc [Wed, 20 Apr 2005 05:33:29 +0000 (05:33 +0000)]
r_shadow_staticworldlights has mutated into r_shadow_realtime_world_compile, r_shadow_realtime_world_compilelight, r_shadow_realtime_world_compileshadow
added r_shadow_visiblelighting

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

19 years agofixed a stupid bug in SV_PushMove that made it ignore the first entity in the move box
havoc [Wed, 20 Apr 2005 01:12:46 +0000 (01:12 +0000)]
fixed a stupid bug in SV_PushMove that made it ignore the first entity in the move box
fixed a rotation check in SV_PushMove so that it would detect roll rotations without pitch/yaw

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

19 years agocleaned up transparency handling in q3 shaders, should fix many glitched jumppads...
havoc [Tue, 19 Apr 2005 08:00:18 +0000 (08:00 +0000)]
cleaned up transparency handling in q3 shaders, should fix many glitched jumppads and such

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

19 years agonow clears view to fog color if fog is enabled, this should cure fogging of sky in...
havoc [Mon, 18 Apr 2005 21:22:09 +0000 (21:22 +0000)]
now clears view to fog color if fog is enabled, this should cure fogging of sky in hlbsp

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

19 years agoclean up script init a bit, now starts nexuiz logo video and such only if there's...
havoc [Mon, 18 Apr 2005 21:21:00 +0000 (21:21 +0000)]
clean up script init a bit, now starts nexuiz logo video and such only if there's nothing to do

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

19 years agoreenabled hlbsp sky polygon rendering so that fogging works
havoc [Mon, 18 Apr 2005 20:50:57 +0000 (20:50 +0000)]
reenabled hlbsp sky polygon rendering so that fogging works

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

19 years agochanged crosshair_static default to 1
havoc [Mon, 18 Apr 2005 06:48:21 +0000 (06:48 +0000)]
changed crosshair_static default to 1

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

19 years agochanged in_pitch_min and in_pitch_max defaults to -90 and 90 respectively
havoc [Mon, 18 Apr 2005 06:47:40 +0000 (06:47 +0000)]
changed in_pitch_min and in_pitch_max defaults to -90 and 90 respectively

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

19 years agofixed the SU_ITEMS fix so that it doesn't trash the PROTOCOL_DARKPLACES6 parsing
havoc [Mon, 18 Apr 2005 02:21:48 +0000 (02:21 +0000)]
fixed the SU_ITEMS fix so that it doesn't trash the PROTOCOL_DARKPLACES6 parsing

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

19 years agofixed a bug in CL_ParseClientdata that was breaking on hipnotic demos
havoc [Sun, 17 Apr 2005 21:15:50 +0000 (21:15 +0000)]
fixed a bug in CL_ParseClientdata that was breaking on hipnotic demos

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

19 years agogl_texture_anisotropy now only affects TEXF_MIPMAP textures which should fix a number...
havoc [Sun, 17 Apr 2005 09:08:54 +0000 (09:08 +0000)]
gl_texture_anisotropy now only affects TEXF_MIPMAP textures which should fix a number of 'wandering off the lightmap' issues (as well as similar issues with model skins, as they are not mipmapped)

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

19 years agotexture images now take on the TEXF_FORCENEAREST and TEXF_FORCELINEAR flags from...
havoc [Sun, 17 Apr 2005 09:05:32 +0000 (09:05 +0000)]
texture images now take on the TEXF_FORCENEAREST and TEXF_FORCELINEAR flags from the textures placed in them (as was intended), so gl_texturemode changes
should no longer affect them

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

19 years agodefault to insert mode instead of replace mode in console
havoc [Sun, 17 Apr 2005 08:37:08 +0000 (08:37 +0000)]
default to insert mode instead of replace mode in console
get rid of stupid cursor right at end of line behavior in console, repeating characters from the previous edit line is annoying
allow typing characters > 126 in console

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

19 years agofix rtlighting on textureless surfaces (uses r_texture_white instead of no texture)
havoc [Sun, 17 Apr 2005 08:33:17 +0000 (08:33 +0000)]
fix rtlighting on textureless surfaces (uses r_texture_white instead of no texture)

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

19 years agodon't draw glow twice when gl_combine is on
havoc [Sun, 17 Apr 2005 08:32:21 +0000 (08:32 +0000)]
don't draw glow twice when gl_combine is on

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

19 years agofixed a stupid bug in Entityframe5_ExpandEdicts
havoc [Sat, 16 Apr 2005 21:30:13 +0000 (21:30 +0000)]
fixed a stupid bug in Entityframe5_ExpandEdicts

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

19 years agofix a crash when s->tag_entity is higher than current d->maxedicts
havoc [Sat, 16 Apr 2005 09:15:18 +0000 (09:15 +0000)]
fix a crash when s->tag_entity is higher than current d->maxedicts

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

19 years agochanged R_Shadow_RenderLighting to do full base+pants+shirt+gloss rendering in one...
havoc [Fri, 15 Apr 2005 08:37:47 +0000 (08:37 +0000)]
changed R_Shadow_RenderLighting to do full base+pants+shirt+gloss rendering in one call (will optimize the rendering itself later to merge some of the passes)

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

19 years agofix a bug in the early out case of R_Q1BSP_DrawLight
havoc [Fri, 15 Apr 2005 08:30:53 +0000 (08:30 +0000)]
fix a bug in the early out case of R_Q1BSP_DrawLight

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