]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
17 years agofix warning - this is still C, remember :)
sajt [Sun, 2 Dec 2007 01:25:31 +0000 (01:25 +0000)]
fix warning - this is still C, remember :)

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

17 years agothe big chat area/font patch... hope it works well. Tested in Nexuiz and Quake. Fonts...
divverent [Sat, 1 Dec 2007 14:29:38 +0000 (14:29 +0000)]
the big chat area/font patch... hope it works well. Tested in Nexuiz and Quake. Fonts and a font generator for it will follow. Font specification is: a TGA as usual, and a .width file defining all character widths (first line is character spacing, then width of 0, of 1, of 2, of 3, ..., of 65 == "A", ..., of 255). An existing font is in Nexuiz svn as gfx/font_user0

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

17 years agoan x for an i... fixed (this bug made sprites disappear completely)
divverent [Thu, 29 Nov 2007 21:48:27 +0000 (21:48 +0000)]
an x for an i... fixed (this bug made sprites disappear completely)

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

17 years agoAdd TEXF_PERSISTENT and R_PurgeTexture which only frees textures if that flag isn...
black [Thu, 29 Nov 2007 20:45:19 +0000 (20:45 +0000)]
Add TEXF_PERSISTENT and R_PurgeTexture which only frees textures if that flag isn't set. Changed the SkinFrame purging code accordingly (and the default texture creation calls).
Fixed a bug that caused dynamic textures not to survive map switches (LoadExternal would try to load pixel data because ->base was set to NULL - it now restores the pointer in SkinFrame_Find..)

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

17 years agofix access to shirt/pants palettes (they no longer have alpha!)
divverent [Thu, 29 Nov 2007 16:24:00 +0000 (16:24 +0000)]
fix access to shirt/pants palettes (they no longer have alpha!)

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

17 years agoswizzle RGBA to BGRA in png loader
havoc [Thu, 29 Nov 2007 06:18:44 +0000 (06:18 +0000)]
swizzle RGBA to BGRA in png loader

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

17 years agoimproved performance of dlight triangle batching in R_Q1BSP_DrawLight
havoc [Wed, 28 Nov 2007 12:42:11 +0000 (12:42 +0000)]
improved performance of dlight triangle batching in R_Q1BSP_DrawLight

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

17 years agopatch from VorteX which makes r_editlights mode use different icons for
havoc [Wed, 28 Nov 2007 12:38:54 +0000 (12:38 +0000)]
patch from VorteX which makes r_editlights mode use different icons for
lights based on their attributes (such as shadowcasting, cubemap, etc)

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

17 years agoprecalculate texture vectors on mdl/md2/md3 models, this improves
havoc [Wed, 28 Nov 2007 11:19:00 +0000 (11:19 +0000)]
precalculate texture vectors on mdl/md2/md3 models, this improves
rendering performance with rtlights or q3bsp lightgrid

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

17 years agosmall optimization to use of texture_t->currenttexmatrix (no longer
havoc [Wed, 28 Nov 2007 10:57:12 +0000 (10:57 +0000)]
small optimization to use of texture_t->currenttexmatrix (no longer
setting it to identitymatrix when there are no tcmods, because
uninitialized matrices are optimized more in the backend than identity)

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

17 years agofix warning
sajt [Wed, 28 Nov 2007 07:19:18 +0000 (07:19 +0000)]
fix warning

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

17 years agofix a mistake in the recent commit
havoc [Wed, 28 Nov 2007 07:10:48 +0000 (07:10 +0000)]
fix a mistake in the recent commit

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

17 years agoreverted code that used vid_grabkeyboard for SDL input grabbing, because
havoc [Wed, 28 Nov 2007 07:03:10 +0000 (07:03 +0000)]
reverted code that used vid_grabkeyboard for SDL input grabbing, because
this allowed the mouse to leave the window which is unacceptable

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

17 years agopatch from VorteX that makes GAME_DELUXEQUAKE mode reset a cvar in the
havoc [Wed, 28 Nov 2007 06:56:32 +0000 (06:56 +0000)]
patch from VorteX that makes GAME_DELUXEQUAKE mode reset a cvar in the
Map command

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

17 years agopatch from VorteX which removes special menu behavior for
havoc [Wed, 28 Nov 2007 06:46:25 +0000 (06:46 +0000)]
patch from VorteX which removes special menu behavior for
GAME_NETHERWORLD, and replaces GAME_NETHERWORLD with GAME_DELUXEQUAKE

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

17 years agochanged texture formats from RGBA to BGRA, yes this is a massive change,
havoc [Wed, 28 Nov 2007 05:22:48 +0000 (05:22 +0000)]
changed texture formats from RGBA to BGRA, yes this is a massive change,
aimed solely at reducing load times, but it failed at that.
this contains several cleanups, and shouldn't reduce performance on any
hardware, so it still goes in.

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

17 years agofix warnings
havoc [Wed, 28 Nov 2007 04:05:33 +0000 (04:05 +0000)]
fix warnings

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

17 years agoadd cl_dyntexture.o to makefile
havoc [Wed, 28 Nov 2007 04:02:30 +0000 (04:02 +0000)]
add cl_dyntexture.o to makefile

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

17 years agoupdated msvc6 project file
sajt [Tue, 27 Nov 2007 23:22:26 +0000 (23:22 +0000)]
updated msvc6 project file
fixed some errors when compiling on windows

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

17 years agoI believe this is what you meant... by the way, you're crazy
sajt [Tue, 27 Nov 2007 23:12:12 +0000 (23:12 +0000)]
I believe this is what you meant... by the way, you're crazy

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

17 years agoUse BGRA >_>
black [Tue, 27 Nov 2007 22:53:42 +0000 (22:53 +0000)]
Use BGRA >_>

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

17 years agoWoops - use -1 to mark dirty textures!
black [Tue, 27 Nov 2007 22:39:46 +0000 (22:39 +0000)]
Woops - use -1 to mark dirty textures!

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

17 years agoRework cl_video to use dyntextures.
black [Tue, 27 Nov 2007 22:26:56 +0000 (22:26 +0000)]
Rework cl_video to use dyntextures.
Add cl_gecko (needs SUPPORT_GECKO to be activated).
Fix r_replacemaptexture and make it use matchpattern to replace multiple textures at once.

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

17 years agoadded support for TEXTYPE_BGRA (GL_BGRA format), this doesn't require
havoc [Mon, 26 Nov 2007 22:05:56 +0000 (22:05 +0000)]
added support for TEXTYPE_BGRA (GL_BGRA format), this doesn't require
any difference in processing functions, but the initial data must be
encoded accordingly
this format was added because it uploads faster on some hardware, and
the engine will be migrating over to using it

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

17 years agoremoved support for TEXTYPE_RGB
havoc [Mon, 26 Nov 2007 21:54:11 +0000 (21:54 +0000)]
removed support for TEXTYPE_RGB
renamed Image_Resample to Image_Resample32 and removed bpp param
renamed Image_MipReduce to Image_MipReduce32 and removed bpp param
changed q3bsp lightmap loader to convert to 32bit before upload

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

17 years agopatch from Mario Schlack which fixes csqc precache_model
havoc [Sat, 24 Nov 2007 07:40:11 +0000 (07:40 +0000)]
patch from Mario Schlack which fixes csqc precache_model

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

17 years agodon't start up CD audio if -nocdaudio is given on commandline - it was
havoc [Sat, 24 Nov 2007 03:10:19 +0000 (03:10 +0000)]
don't start up CD audio if -nocdaudio is given on commandline - it was
already not being initialized, but it was being started

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

17 years agoAdd cl_dyntexture.h and .c (don't need to be added to the makefile or vc project...
black [Fri, 23 Nov 2007 00:26:10 +0000 (00:26 +0000)]
Add cl_dyntexture.h and .c (don't need to be added to the makefile or vc project yet). They expose a simple interface to manage dynamic textures.
It supports getting the current texture handle for a dynamic texture path, linking a dynamic texture path to a texture handle and unlinking a dynamic texture path.
This is pretty transparent and it could be used for arbitrary dynamic textures (even ones that aren't updated but only linked dynamically into the game world - alias texture names).
This works for both skinframes and cachepics. Still contains lots of todos.

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

17 years agobotclients don't set spawned... so fix the -666 for Nexuiz downloaders feature to...
divverent [Thu, 22 Nov 2007 22:23:48 +0000 (22:23 +0000)]
botclients don't set spawned... so fix the -666 for Nexuiz downloaders feature to not show botclients as -666 frags

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

17 years agoAdd support for dynamic textures to the low-level texture handler.
black [Thu, 22 Nov 2007 00:06:00 +0000 (00:06 +0000)]
Add support for dynamic textures to the low-level texture handler.
Use R_MakeTextureDynamic to make a standard texture dynamic and set its update callback, etc. and use R_MarkDirtyTexture to mark it dirty (ie. needs an update as soon as it is used again).

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

17 years agofix some warnings
havoc [Wed, 21 Nov 2007 00:43:02 +0000 (00:43 +0000)]
fix some warnings

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

17 years agodon't call lightning beam vertex fogging code BEFORE the vertex data is
havoc [Tue, 20 Nov 2007 23:04:41 +0000 (23:04 +0000)]
don't call lightning beam vertex fogging code BEFORE the vertex data is
initialized (this was causing crashes due to highly bogus numbers)
this bug came from refactoring the lightning beam code to be able to
render multiple beams in one transparent callback

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

17 years agochanged FogPoint_World/Model code to use unsigned int instead of signed
havoc [Tue, 20 Nov 2007 20:43:35 +0000 (20:43 +0000)]
changed FogPoint_World/Model code to use unsigned int instead of signed
int, this fixes a crash reported by Andreas Dehmel in certain quoth
maps, I have no idea how coordinates can be negative though

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

17 years agofix an unsigned/signed comparison warning on lhnetsocket_t.inetsocket
havoc [Sun, 18 Nov 2007 19:11:43 +0000 (19:11 +0000)]
fix an unsigned/signed comparison warning on lhnetsocket_t.inetsocket

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

17 years agomake vid_sdl compile on WIN32 again (it uses different icon code on
havoc [Sun, 18 Nov 2007 18:33:32 +0000 (18:33 +0000)]
make vid_sdl compile on WIN32 again (it uses different icon code on
WIN32 and wasn't declaring an empty VID_SetIcon implementation)

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

17 years agofix bug with loading a saved game while a demo is playing (such as the
havoc [Sun, 18 Nov 2007 13:51:18 +0000 (13:51 +0000)]
fix bug with loading a saved game while a demo is playing (such as the
demo loop when Quake starts up), thanks to Bill Pickett for giving a
clear and concise description of the problem

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

17 years agouse strcasecmp for file name sorting
divverent [Sat, 17 Nov 2007 11:42:23 +0000 (11:42 +0000)]
use strcasecmp for file name sorting

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

17 years agosorry, I can't live without strstrofs
divverent [Thu, 15 Nov 2007 19:26:05 +0000 (19:26 +0000)]
sorry, I can't live without strstrofs

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

17 years agoadd missing str*cmp builtins to mvm_cmds.c
divverent [Thu, 15 Nov 2007 15:54:32 +0000 (15:54 +0000)]
add missing str*cmp builtins to mvm_cmds.c

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

17 years agofix tempstring allocation bug in VM_tokenize*
divverent [Thu, 15 Nov 2007 15:07:16 +0000 (15:07 +0000)]
fix tempstring allocation bug in VM_tokenize*

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

17 years agoSDL icon support by Blub, messed up by me ;)
divverent [Tue, 13 Nov 2007 20:25:53 +0000 (20:25 +0000)]
SDL icon support by Blub, messed up by me ;)

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

17 years agoremoved cl_particles_explosions_smoke cvar and code
havoc [Tue, 13 Nov 2007 15:31:53 +0000 (15:31 +0000)]
removed cl_particles_explosions_smoke cvar and code

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

17 years agochanged default value of cl_stainmaps to 0 (was 1)
havoc [Tue, 13 Nov 2007 15:30:55 +0000 (15:30 +0000)]
changed default value of cl_stainmaps to 0 (was 1)
changed default values of cl_decals to 1 (was 0), cl_decals_time to 20 (was 0), and
cl_decals_fadetime to 1 (was 20)

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

17 years agoadded separate world surfaces and world triangles stats counters for
havoc [Tue, 13 Nov 2007 15:28:54 +0000 (15:28 +0000)]
added separate world surfaces and world triangles stats counters for
r_speeds display, cleaned up some incorrect stat increments
split particle system into particles and decals, this got a nice speed
gain due to smaller structs involved
increased blood alpha substantially

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

17 years agochanged two memcpy calls to memmove after testing in valgrind (no other
havoc [Tue, 13 Nov 2007 01:59:09 +0000 (01:59 +0000)]
changed two memcpy calls to memmove after testing in valgrind (no other
errors found, and these are in original Quake code)

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

17 years agoneed to include quakedef.h later in the other vid_ files too. Damn glquake.h.
divverent [Mon, 12 Nov 2007 15:13:50 +0000 (15:13 +0000)]
need to include quakedef.h later in the other vid_ files too. Damn glquake.h.

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

17 years agocan't move quakedef.h up in vid_agl.c (redefinition of OpenGL stuff)
divverent [Mon, 12 Nov 2007 14:59:13 +0000 (14:59 +0000)]
can't move quakedef.h up in vid_agl.c (redefinition of OpenGL stuff)

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

17 years agoadd missing extern keyword
divverent [Mon, 12 Nov 2007 14:37:32 +0000 (14:37 +0000)]
add missing extern keyword

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

17 years agomove two #defined to quakedef.h, and always include quakedef.h first before any other...
divverent [Mon, 12 Nov 2007 14:28:40 +0000 (14:28 +0000)]
move two #defined to quakedef.h, and always include quakedef.h first before any other includes, even system headers. This is to make compilation with gcc -combine work. Also, fix some type mismatches between source files.

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

17 years agooptimized SHOWLMP code (only used by Nehahra) to not eat any CPU time
havoc [Mon, 12 Nov 2007 13:06:59 +0000 (13:06 +0000)]
optimized SHOWLMP code (only used by Nehahra) to not eat any CPU time
anymore

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

17 years agoimplemented a -profilegameonly commandline option for profile builds on
havoc [Mon, 12 Nov 2007 10:47:01 +0000 (10:47 +0000)]
implemented a -profilegameonly commandline option for profile builds on
Linux/FreeBSD (others can be added if they have the moncontrol function)

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

17 years agoadded a non-diffuse non-specular path for model lighting in the GLSL
havoc [Mon, 12 Nov 2007 10:45:37 +0000 (10:45 +0000)]
added a non-diffuse non-specular path for model lighting in the GLSL
shader, this fixes a bug that caused the engine to generate normals and
tangents for every model in q1bsp maps unnecessarily because of an
incorrect need for a normalmap

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

17 years agoadded cvar r_fixtrans_auto to automatically call fixtrans on all textures that are...
divverent [Mon, 12 Nov 2007 08:21:33 +0000 (08:21 +0000)]
added cvar r_fixtrans_auto to automatically call fixtrans on all textures that are loaded

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

17 years agoavoid one viewclear each frame
havoc [Mon, 12 Nov 2007 02:22:53 +0000 (02:22 +0000)]
avoid one viewclear each frame

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

17 years agofix SLIF_FREESLOTS to not be an out of bounds array access
havoc [Mon, 12 Nov 2007 02:07:28 +0000 (02:07 +0000)]
fix SLIF_FREESLOTS to not be an out of bounds array access
hush an entry may be used uninitialized warning

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

17 years agorenamed a few r_speeds 2 timereport values to reduce confusion
havoc [Mon, 12 Nov 2007 01:54:14 +0000 (01:54 +0000)]
renamed a few r_speeds 2 timereport values to reduce confusion

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

17 years agosupport vid_resizable in glx
divverent [Sat, 10 Nov 2007 12:00:36 +0000 (12:00 +0000)]
support vid_resizable in glx

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

17 years agoXPM support for X11; WM_CLASS and WM_COMMAND are now set too
divverent [Sat, 10 Nov 2007 09:34:18 +0000 (09:34 +0000)]
XPM support for X11; WM_CLASS and WM_COMMAND are now set too

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

17 years agoremove timed out servers from list
divverent [Fri, 9 Nov 2007 22:44:05 +0000 (22:44 +0000)]
remove timed out servers from list

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

17 years agoquerycounters LOVE to be reset ;)
divverent [Fri, 9 Nov 2007 22:36:43 +0000 (22:36 +0000)]
querycounters LOVE to be reset ;)

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

17 years agoupdate Blub's SDL patch
divverent [Fri, 9 Nov 2007 21:36:54 +0000 (21:36 +0000)]
update Blub's SDL patch

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

17 years agofix two warnings
havoc [Fri, 9 Nov 2007 21:22:11 +0000 (21:22 +0000)]
fix two warnings

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

17 years agoincreased minimum cl_maxfps value from 1 to 5 (but removed the value
havoc [Fri, 9 Nov 2007 21:19:17 +0000 (21:19 +0000)]
increased minimum cl_maxfps value from 1 to 5 (but removed the value
changing code)
implemented minimum cl_maxidlefps value of 5
tweaked code that snaps very small or negative values of slowmo to 0

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

17 years agoadd Nexuiz-only cvar sbar_flagstatus_right (preparation for chat area + font patch)
divverent [Fri, 9 Nov 2007 15:39:24 +0000 (15:39 +0000)]
add Nexuiz-only cvar sbar_flagstatus_right (preparation for chat area + font patch)

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

17 years agomake fixtrans use patterns instead, for batch fixing
divverent [Fri, 9 Nov 2007 15:16:30 +0000 (15:16 +0000)]
make fixtrans use patterns instead, for batch fixing

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

17 years agoadd new console command "fixtrans", usage: fixtrans gfx/foo.tga - writes a new fixtra...
divverent [Fri, 9 Nov 2007 15:03:13 +0000 (15:03 +0000)]
add new console command "fixtrans", usage: fixtrans gfx/foo.tga - writes a new fixtrans/gfx/foo.tga with alpha-zero pixels changed to values around them. Helps with weird seams on badly made transparent images.

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

17 years agoadd Blub's r_track_sprites for SPR_LABEL*
divverent [Fri, 9 Nov 2007 13:57:58 +0000 (13:57 +0000)]
add Blub's r_track_sprites for SPR_LABEL*

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

17 years agoBlub's nick completion
divverent [Fri, 9 Nov 2007 13:45:53 +0000 (13:45 +0000)]
Blub's nick completion

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

17 years agoWin32 largefile support (mostly for capturevideo)
divverent [Fri, 9 Nov 2007 13:34:34 +0000 (13:34 +0000)]
Win32 largefile support (mostly for capturevideo)

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

17 years agoadd cvar cl_movement_track_canjump (when off, client prediction allows "pogoing"...
divverent [Fri, 9 Nov 2007 13:33:44 +0000 (13:33 +0000)]
add cvar cl_movement_track_canjump (when off, client prediction allows "pogoing" by holding the jump key all the time; this also seems to behave better than the current behaviour which too often sticks you to the floor)

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

17 years ago(Nexuiz) show people who are still downloading as -666 (like spectators) in scoreboar...
divverent [Fri, 9 Nov 2007 13:25:10 +0000 (13:25 +0000)]
(Nexuiz) show people who are still downloading as -666 (like spectators) in scoreboard. Should get replaced by some way to completely hide them from scoreboard, but still show them in status, ping etc.

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

17 years agoSDL: parameters -resizable, -stick_mouse, -no_input_grabbing (Blub)
divverent [Fri, 9 Nov 2007 13:23:35 +0000 (13:23 +0000)]
SDL: parameters -resizable, -stick_mouse, -no_input_grabbing (Blub)

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

17 years agowatch your memory :)
divverent [Fri, 9 Nov 2007 11:56:32 +0000 (11:56 +0000)]
watch your memory :)

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

17 years agohush a bogus warning on startup on pre-OpenGL 2.0 drivers
havoc [Thu, 8 Nov 2007 21:47:50 +0000 (21:47 +0000)]
hush a bogus warning on startup on pre-OpenGL 2.0 drivers

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

17 years agoClean-up the refresh code and remove the refresh field from serverlist_entry_t again...
black [Thu, 8 Nov 2007 20:50:42 +0000 (20:50 +0000)]
Clean-up the refresh code and remove the refresh field from serverlist_entry_t again (use a new query state instead).

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

17 years ago- add support for server list refreshes to netconn (more refactoring will follow...
black [Thu, 8 Nov 2007 20:23:50 +0000 (20:23 +0000)]
- add support for server list refreshes to netconn (more refactoring will follow soon)
- change MQC's refreshserverlist builtin to refresh the serverlist by default (which actually does what the function name implies)
- also add a console command but it is kinda useless (except that it is probably faster because it doesnt wait for the master server's response to start querying)

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

17 years agoadd a "freeslots" field to the host cache
divverent [Mon, 5 Nov 2007 13:39:06 +0000 (13:39 +0000)]
add a "freeslots" field to the host cache

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

17 years agoshorten the "watervisibility" title in r_speeds 2 mode because it is
havoc [Fri, 2 Nov 2007 14:23:09 +0000 (14:23 +0000)]
shorten the "watervisibility" title in r_speeds 2 mode because it is
messing up alignment of the remaining columns

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

17 years agomove SDLMain.m to the right place
divverent [Wed, 31 Oct 2007 09:01:25 +0000 (09:01 +0000)]
move SDLMain.m to the right place

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

17 years agoadd SDLMain stuff for OS X; make the Makefiles ready for OS X cross compilation ...
divverent [Wed, 31 Oct 2007 08:54:22 +0000 (08:54 +0000)]
add SDLMain stuff for OS X; make the Makefiles ready for OS X cross compilation (note: OS X doesn't use sdl-config)

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

17 years agomake STRIP a specifyable option in the Makefile
divverent [Wed, 31 Oct 2007 08:11:27 +0000 (08:11 +0000)]
make STRIP a specifyable option in the Makefile

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

17 years agosome reworking and cleanup of gravity handling in particles, this fixes
havoc [Tue, 30 Oct 2007 17:27:19 +0000 (17:27 +0000)]
some reworking and cleanup of gravity handling in particles, this fixes
a bug with blood rarely sticking to surfaces (due to delayedcollisions),
the same bug also affected gib trails but was less noticable

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

17 years agoadd menu QC drawsubpic() to draw just part of an image; revert change to DrawQ_SuperPic
divverent [Sat, 27 Oct 2007 12:40:28 +0000 (12:40 +0000)]
add menu QC drawsubpic() to draw just part of an image; revert change to DrawQ_SuperPic

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

17 years agonew menu QC builtin "stringwidth(string text, float handleColors)", does not do anyth...
divverent [Sat, 27 Oct 2007 10:59:44 +0000 (10:59 +0000)]
new menu QC builtin "stringwidth(string text, float handleColors)", does not do anything useful yet, but added for future expansion (variable width fonts); also add this to CSQC (see TODO in clvm_cmds.c)

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

17 years agofix the picture drawing fix
divverent [Fri, 26 Oct 2007 11:44:28 +0000 (11:44 +0000)]
fix the picture drawing fix

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

17 years agoChange DrawQ_Pic and _SuperPic to be texel correct to fix bad clamping behavior.
divverent [Wed, 24 Oct 2007 21:59:53 +0000 (21:59 +0000)]
Change DrawQ_Pic and _SuperPic to be texel correct to fix bad clamping behavior.

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

17 years agofix FS_Read when reading size 1 (it segfaulted sometimes then)
divverent [Tue, 23 Oct 2007 14:36:48 +0000 (14:36 +0000)]
fix FS_Read when reading size 1 (it segfaulted sometimes then)
fix FS_Getc to allow 8bit data (by using unsigned char instead, like fgetc)

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

17 years agoadded r_textbrightness to control color codes (so conchars can use black borders...
divverent [Sun, 21 Oct 2007 19:30:11 +0000 (19:30 +0000)]
added r_textbrightness to control color codes (so conchars can use black borders around text and color ^0 still stays readable)

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

17 years agofixed missing newline at end of some stufftext (breaking curl downloads a little)
divverent [Sun, 21 Oct 2007 13:48:50 +0000 (13:48 +0000)]
fixed missing newline at end of some stufftext (breaking curl downloads a little)

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

17 years agoreverted the cleanup of entity state building because it was sapping
havoc [Sun, 21 Oct 2007 11:21:47 +0000 (11:21 +0000)]
reverted the cleanup of entity state building because it was sapping
massive amounts of performance even with only 16 players, now it once
again builds them only once per frame and filters them per client

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

17 years agoprvm_callprofile: a flat profile, time based, including subcalls
divverent [Fri, 19 Oct 2007 10:51:33 +0000 (10:51 +0000)]
prvm_callprofile: a flat profile, time based, including subcalls

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

17 years agofixed a bug in multiplayer savegame loading that caused all players
havoc [Thu, 18 Oct 2007 07:09:15 +0000 (07:09 +0000)]
fixed a bug in multiplayer savegame loading that caused all players
after the first one to respawn immediately after loading
(sv.loadgame and sv.paused were being cleared by the first player)

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

17 years agodo contrastboost before reflection; move fog behind contrastboost (consistent with...
divverent [Wed, 17 Oct 2007 21:16:23 +0000 (21:16 +0000)]
do contrastboost before reflection; move fog behind contrastboost (consistent with skybox)

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

17 years agoWe always <push> <PUSH> and <pop> <POP> like this... NOT.
divverent [Wed, 17 Oct 2007 09:41:01 +0000 (09:41 +0000)]
We always <push> <PUSH> and <pop> <POP> like this... NOT.

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

17 years agoadded back Always Run option (I forgot that the default speed was bad in
havoc [Wed, 17 Oct 2007 08:35:40 +0000 (08:35 +0000)]
added back Always Run option (I forgot that the default speed was bad in
quake, oops!)

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

17 years agofixed cl.movement_origin being invalid on quake protocol (and others
havoc [Wed, 17 Oct 2007 08:34:26 +0000 (08:34 +0000)]
fixed cl.movement_origin being invalid on quake protocol (and others
before dp6), this fixes the loc messages in chat on quake servers

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

17 years agodisable water rendering without r_glsl because the fallback path has
havoc [Wed, 17 Oct 2007 05:50:31 +0000 (05:50 +0000)]
disable water rendering without r_glsl because the fallback path has
been removed

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

17 years agoremoved some code scraps from previous patch
havoc [Wed, 17 Oct 2007 05:46:08 +0000 (05:46 +0000)]
removed some code scraps from previous patch
removed SHADERPERMUTATION_WATER and REFRACTION (since those are now
SHADERMODE_ values)

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

17 years agoimplemented a fixed function fallback for water, but it is disabled
havoc [Wed, 17 Oct 2007 04:51:47 +0000 (04:51 +0000)]
implemented a fixed function fallback for water, but it is disabled
because of extreme distortion artifacts (it would need to use a cubemap
for perspective correction)
implemented two-pass rendering of water and refraction surfaces, this
enables blendfunc of the first layer to work properly, the old path is
still present but disabled

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

17 years agooops... buffer overflow after a 640GB video file... fixed :P
divverent [Tue, 16 Oct 2007 22:10:26 +0000 (22:10 +0000)]
oops... buffer overflow after a 640GB video file... fixed :P

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