12 years agonote to myself: skipping over data works better if you actually do it
divverent [Mon, 28 Jan 2008 11:44:27 +0000 (11:44 +0000)]
note to myself: skipping over data works better if you actually do it

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

12 years agoadd a DEMOMSG_CLIENT_TO_SERVER flag to demos (0x80000000) in the size field; packets...
divverent [Mon, 28 Jan 2008 09:40:11 +0000 (09:40 +0000)]
add a DEMOMSG_CLIENT_TO_SERVER flag to demos (0x80000000) in the size field; packets with this flag will be ignored by playback. sv_autodemo_perclient 2 will record these packages for debugging purposes (like, recording a speedhacker's or other protocol exploiter's packets, and analyzing them with the data in the demo file manually)

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

12 years agosome very slight optimization to rt light rendering setup code
havoc [Mon, 28 Jan 2008 06:52:37 +0000 (06:52 +0000)]
some very slight optimization to rt light rendering setup code

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

12 years agoadded r_glsl_postprocess cvar to apply a postprocessing pass over the
havoc [Mon, 28 Jan 2008 03:36:03 +0000 (03:36 +0000)]
added r_glsl_postprocess cvar to apply a postprocessing pass over the
screen (currently only implements r_glsl_contrastboost)
this path is also activated if bloom or hdr is active with r_glsl 1

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

12 years agoClean up the FS_FIX_PATHS code a bit - should by faster now, too.
black [Mon, 28 Jan 2008 01:09:00 +0000 (01:09 +0000)]
Clean up the FS_FIX_PATHS code a bit - should by faster now, too.

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

12 years agoMake fgets always return the null string on error.
black [Mon, 28 Jan 2008 01:02:56 +0000 (01:02 +0000)]
Make fgets always return the null string on error.
Add code to FS_Open to fix bad paths (replaces \ with /). The code is nasty and #ifdefed out - #define FS_FIX_PATHS to use it.

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

12 years agoremove a bogus RSurf_SetupDepthAndCulling call that was crashing
havoc [Sun, 27 Jan 2008 23:52:45 +0000 (23:52 +0000)]
remove a bogus RSurf_SetupDepthAndCulling call that was crashing

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

12 years agoR_SetView now supports VF_CLEARSCREEN which decides whether to clear the screen or...
black [Sun, 27 Jan 2008 18:49:34 +0000 (18:49 +0000)]
R_SetView now supports VF_CLEARSCREEN which decides whether to clear the screen or not when rendering the view (this is of particular interest for rendering view in views or for the menu).

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

12 years agoPass the name of the instance to Gecko_Query, too.
black [Sun, 27 Jan 2008 17:23:08 +0000 (17:23 +0000)]
Pass the name of the instance to Gecko_Query, too.
Add setattachment, gettaginfo and gettagindex to menu builtin list, too.

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

12 years agosome surface rendering code cleanup
havoc [Sun, 27 Jan 2008 08:39:42 +0000 (08:39 +0000)]
some surface rendering code cleanup
eliminated several redundant state calls
eliminated RSurf_CleanUp function
eliminated special gl_lightmaps rendering path
moved all but the basic material rendering from R_DrawTextureSurfaceList
to R_ProcessTextureSurfaceList, this simplifies the transparent callback
and allowed me to move the transparent queuing into this function

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

12 years agoimplemented r_glsl_usegeneric cvar, this causes generic GLSL shaders to
havoc [Sun, 27 Jan 2008 06:28:54 +0000 (06:28 +0000)]
implemented r_glsl_usegeneric cvar, this causes generic GLSL shaders to
be used in place of ALL conventional fixedfunction rendering, seems to
give about a 3% fps increase on NVIDIA drivers
this should fix zfighting issues involving r_depthfirst or shadows,
particularly on Mac OSX (may also fix the OSX rotating/scrolling hud)

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

12 years agoAdd R_SelectScene and R_GetScenePointer that encapsulate access to an array of r_refd...
black [Sun, 27 Jan 2008 02:18:54 +0000 (02:18 +0000)]
Add R_SelectScene and R_GetScenePointer that encapsulate access to an array of r_refdef_scene_t that is swapped into r_refdef on need.
Change the menu to use it and fix a bug that was caused because of the menu's use of the stack for backing up the client's scene.

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

12 years agoremove a dead prototype
havoc [Sun, 27 Jan 2008 02:05:00 +0000 (02:05 +0000)]
remove a dead prototype

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

12 years agoadded a TODO comment about blacklisting GL_ARB_texture_non_power_of_two
havoc [Sun, 27 Jan 2008 02:03:54 +0000 (02:03 +0000)]
added a TODO comment about blacklisting GL_ARB_texture_non_power_of_two
on Radeon X1600-X1950 cards

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

12 years agorewrote most of the VM_Polygon/DebugPolygon code, it should perform much
havoc [Sun, 27 Jan 2008 00:55:22 +0000 (00:55 +0000)]
rewrote most of the VM_Polygon/DebugPolygon code, it should perform much
better now and has no upper limit on polygons, and only a 64 point limit
per polygon, and has transparent sorting again

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

12 years agoadded cl_minfps_qualitypower cvar to make particle quality drop more
havoc [Sun, 27 Jan 2008 00:46:45 +0000 (00:46 +0000)]
added cl_minfps_qualitypower cvar to make particle quality drop more
sharply at lower framerates

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

12 years agoupdate docs for dp_reflect, dp_refract, dp_water
divverent [Sat, 26 Jan 2008 15:06:01 +0000 (15:06 +0000)]
update docs for dp_reflect, dp_refract, dp_water

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

12 years agoFix uninitialized msg.allowoverflow in SV_SendClientDatagram
res [Fri, 25 Jan 2008 23:51:59 +0000 (23:51 +0000)]
Fix uninitialized msg.allowoverflow in SV_SendClientDatagram

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

12 years agodisabled size throttling of packets if csqc is used (because it was very
havoc [Fri, 25 Jan 2008 23:31:06 +0000 (23:31 +0000)]
disabled size throttling of packets if csqc is used (because it was very
easy to end up with >128 byte entity updates which can in some cases
never be sent at all due to the size throttling)

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

12 years agorestricted rcon: actually display a different message if restricted rcon was used
divverent [Fri, 25 Jan 2008 21:06:46 +0000 (21:06 +0000)]
restricted rcon: actually display a different message if restricted rcon was used

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

12 years agovary r_drawparticles_drawdistance and r_drawdecals_drawdistance for
havoc [Fri, 25 Jan 2008 19:47:02 +0000 (19:47 +0000)]
vary r_drawparticles_drawdistance and r_drawdecals_drawdistance for
quality limiting according to FPS, instead of skipping particles, this
looks much better (but doesn't help FPS as much)

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

12 years agofix warning
divverent [Fri, 25 Jan 2008 11:40:15 +0000 (11:40 +0000)]
fix warning

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

12 years agofix tab completion spam
divverent [Fri, 25 Jan 2008 09:47:10 +0000 (09:47 +0000)]
fix tab completion spam

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

12 years agotab completion now allows directories (PLEASE TEST ON WIN32)
divverent [Fri, 25 Jan 2008 09:08:53 +0000 (09:08 +0000)]
tab completion now allows directories (PLEASE TEST ON WIN32)

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

12 years agorenamed cl_minfps_expbase to cl_minfps_logbase
havoc [Fri, 25 Jan 2008 08:53:00 +0000 (08:53 +0000)]
renamed cl_minfps_expbase to cl_minfps_logbase

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

12 years agoimplemented framerate-dependent particle quality reduction to try to
havoc [Fri, 25 Jan 2008 08:48:57 +0000 (08:48 +0000)]
implemented framerate-dependent particle quality reduction to try to
smooth out fps swings in Ruiner in Nexuiz
added r_drawparticles_drawdistance (and one for decals)
particles and decals arrays now grow dynamically and have smaller
defaults than before
fixed bug with rain particles that made them live for about 4 minutes if
they fell out of the map

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

12 years agoExpandable arrays: memset to zero newly returned records (to be consistent with Mem_A...
divverent [Thu, 24 Jan 2008 21:43:55 +0000 (21:43 +0000)]
Expandable arrays: memset to zero newly returned records (to be consistent with Mem_Alloc). Fixes bug with string buffers.

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

12 years agochanged timedemo one-second stats to sync to cl.time (which comes from
havoc [Thu, 24 Jan 2008 02:44:57 +0000 (02:44 +0000)]
changed timedemo one-second stats to sync to cl.time (which comes from
the demo) rather than realtime, so now they should be more consistent

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

12 years agoedu2p game: change 2nd game dir to 'edu2'
res [Thu, 24 Jan 2008 01:56:18 +0000 (01:56 +0000)]
edu2p game: change 2nd game dir to 'edu2'

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

12 years agoGecko: added ability to call back into a QC entry point (Gecko_Entry) from JS inside...
res [Tue, 22 Jan 2008 22:57:45 +0000 (22:57 +0000)]
Gecko: added ability to call back into a QC entry point (Gecko_Entry) from JS inside a Gecko instance.

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

12 years ago458
tomaz [Tue, 22 Jan 2008 21:05:53 +0000 (21:05 +0000)]

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

12 years agotodo items went from 465 to 459 by finding items that was already done or duplicates
tomaz [Tue, 22 Jan 2008 20:56:16 +0000 (20:56 +0000)]
todo items went from 465 to 459 by finding items that was already done or duplicates

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

12 years agomerged CL_MoveParticles, CL_MoveDecals, and R_MoveExplosions into their
havoc [Tue, 22 Jan 2008 20:05:42 +0000 (20:05 +0000)]
merged CL_MoveParticles, CL_MoveDecals, and R_MoveExplosions into their
respective Draw functions, this gave a small fps gain (due to better
cache behavior)
redesigned input packet timing (now based on cl.time instead of
realtime, which required compensating for slowmo), this takes advantage
of the time synchronization features of the cl.time code
replaced cls.movesequence with cls.netcon->outgoing_unreliable_sequence

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

12 years agosome slight cleanup of SV_PushMove
havoc [Tue, 22 Jan 2008 20:03:47 +0000 (20:03 +0000)]
some slight cleanup of SV_PushMove

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

12 years agofixed sprites rendering incorrectly in reflections (the view vectors no
havoc [Tue, 22 Jan 2008 19:56:33 +0000 (19:56 +0000)]
fixed sprites rendering incorrectly in reflections (the view vectors no
longer match the actual rendering matrix in the reflection case, fixing
such problems)

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

12 years agoremoved support for Sajt's unfinished McBSP format
havoc [Tue, 22 Jan 2008 19:17:44 +0000 (19:17 +0000)]
removed support for Sajt's unfinished McBSP format

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

12 years agoremoved mcbsp map parsing
havoc [Tue, 22 Jan 2008 19:15:55 +0000 (19:15 +0000)]
removed mcbsp map parsing

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

12 years agoI really prefer code that actually compiles...
divverent [Tue, 22 Jan 2008 18:53:10 +0000 (18:53 +0000)]
I really prefer code that actually compiles...

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

12 years agoUpdate OffscreenGecko headers again
res [Tue, 22 Jan 2008 17:38:35 +0000 (17:38 +0000)]
Update OffscreenGecko headers again

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

12 years agoNew OffscreenGecko scripting stuff
res [Tue, 22 Jan 2008 15:12:18 +0000 (15:12 +0000)]
New OffscreenGecko scripting stuff

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

12 years agomake play/play2 dummies when -nosound
divverent [Tue, 22 Jan 2008 14:53:58 +0000 (14:53 +0000)]
make play/play2 dummies when -nosound

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

12 years agofix the "ping times for antilag/display wrong" issue, but increasing the problems...
divverent [Tue, 22 Jan 2008 09:49:30 +0000 (09:49 +0000)]
fix the "ping times for antilag/display wrong" issue, but increasing the problems of sv_clmovement_waitforinput a bit

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

12 years agoremove superfluous newline after gl_vbostats text
divverent [Mon, 21 Jan 2008 06:16:47 +0000 (06:16 +0000)]
remove superfluous newline after gl_vbostats text

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

12 years agoFor some reason, cl_netinputpacketsperserverpacket > 1 causes choppiness when cl_move...
divverent [Sun, 20 Jan 2008 19:45:25 +0000 (19:45 +0000)]
For some reason, cl_netinputpacketsperserverpacket > 1 causes choppiness when cl_movement is active and fps are high.

As workaround, disable the "replying to server frames" code for cl_netinputpacketsperserverpacket > 1, and make it ONLY respond to server frames (or after 0.1s when no server frame came) when set to 0. 0 MAY be a bit more smooth than 1, but something tells me it is LESS smooth when packet loss is involved.

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

12 years agodamn... make sure Host_Error prevents SV_Shutdown from getting called, or it could...
divverent [Sat, 19 Jan 2008 11:20:21 +0000 (11:20 +0000)]
damn... make sure Host_Error prevents SV_Shutdown from getting called, or it could result in a double fault that causes a hard edit

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

12 years agonew SV progs function SV_Shutdown, gets called just before progs get unloaded/renewed...
divverent [Sat, 19 Jan 2008 11:16:12 +0000 (11:16 +0000)]
new SV progs function SV_Shutdown, gets called just before progs get unloaded/renewed. Useful to save data at the end of a level.

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

12 years agoadd missing FTE_STRINGS to menu QC
divverent [Sat, 19 Jan 2008 10:42:23 +0000 (10:42 +0000)]
add missing FTE_STRINGS to menu QC

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

12 years agorename VM_hash to VM_crc16, and the extension to DP_QC_CRC16. That way, it is specifi...
divverent [Sat, 19 Jan 2008 08:26:00 +0000 (08:26 +0000)]
rename VM_hash to VM_crc16, and the extension to DP_QC_CRC16. That way, it is specified that it has to be this specific hash function.

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

12 years agoFix bug in stringbuffers with bufstr_set not updating num_strings; add a new builtin...
divverent [Sat, 19 Jan 2008 01:46:58 +0000 (01:46 +0000)]
Fix bug in stringbuffers with bufstr_set not updating num_strings; add a new builtin for QC called float hash(float caseinsensitive, string str) that returns the CRC of the string (possibly after lowercasing). Using this, a persistent database can be implemented quite efficiently (for a 1MB database file, it takes about 0.1 seconds to load and 0.3 seconds to save, which is quite acceptable). From QC, I use a string buffer of 16384 strings, indexed by hash of the key, containing an info string at each index to solve the collision issue. Possibly add hash() to the stringbuffer DP extension, or make a new extension for it?

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

12 years agobuf_del builtin frees strings in the buffer now
havoc [Fri, 18 Jan 2008 15:47:26 +0000 (15:47 +0000)]
buf_del builtin frees strings in the buffer now

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

12 years agoRemoved passing machine type from the makefile to the compiler; instead, determine...
res [Fri, 18 Jan 2008 15:38:00 +0000 (15:38 +0000)]
Removed passing machine type from the makefile to the compiler; instead, determine that stuff through preprocessor conditions.

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

12 years agofix quoting for machine type
divverent [Fri, 18 Jan 2008 14:19:58 +0000 (14:19 +0000)]
fix quoting for machine type

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

12 years agolowered fresnel power in GLSL shader from 5.0 to 2.0 to make water
havoc [Fri, 18 Jan 2008 12:39:58 +0000 (12:39 +0000)]
lowered fresnel power in GLSL shader from 5.0 to 2.0 to make water
reflections more visible

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

12 years agodisable water clipping plane while rendering sky, this fixes the "black
havoc [Fri, 18 Jan 2008 11:45:39 +0000 (11:45 +0000)]
disable water clipping plane while rendering sky, this fixes the "black
sky" bug in reflection/refraction rendering

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

12 years agomake GL_SetupView_Orientation_FromEntity not blow away the model matrix
havoc [Fri, 18 Jan 2008 11:44:31 +0000 (11:44 +0000)]
make GL_SetupView_Orientation_FromEntity not blow away the model matrix

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

12 years agoAdd support for a clientcamera sqc field that automatically updates the view entity...
black [Thu, 17 Jan 2008 13:39:55 +0000 (13:39 +0000)]
Add support for a clientcamera sqc field that automatically updates the view entity on the clients.

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

12 years agorewrote most of the DP_QC_STRINGBUFFERS implementation
havoc [Thu, 17 Jan 2008 13:19:11 +0000 (13:19 +0000)]
rewrote most of the DP_QC_STRINGBUFFERS implementation
string buffers are now associated with their parent progs (and no longer
leak when the progs is freed)
removed almost all limits on string buffers (there is a sanity limit of
a million strings per buffer)

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

12 years agohush unitialized warnings
havoc [Thu, 17 Jan 2008 11:05:39 +0000 (11:05 +0000)]
hush unitialized warnings

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

12 years agofix a syntax error in the GLSL shader for vertextextureblend + specular
havoc [Thu, 17 Jan 2008 09:14:25 +0000 (09:14 +0000)]
fix a syntax error in the GLSL shader for vertextextureblend + specular

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

12 years agoset eol-style property
res [Wed, 16 Jan 2008 11:20:50 +0000 (11:20 +0000)]
set eol-style property

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

12 years agoGecko: add a platform-specific search path for XULrunner. This makes it possible...
res [Wed, 16 Jan 2008 11:19:30 +0000 (11:19 +0000)]
Gecko: add a platform-specific search path for XULrunner. This makes it possible to keep versions for different platforms side-by-side.

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

12 years agoGCC warning fixes
res [Wed, 16 Jan 2008 11:11:13 +0000 (11:11 +0000)]
GCC warning fixes

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

12 years agoAdd cl_gecko.c to Makefile
res [Wed, 16 Jan 2008 11:07:22 +0000 (11:07 +0000)]
Add cl_gecko.c to Makefile

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

12 years agoGecko: load OffscreenGecko dynamically
res [Wed, 16 Jan 2008 11:05:29 +0000 (11:05 +0000)]
Gecko: load OffscreenGecko dynamically

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

12 years agoFix CL_VM_InputeEvent prototype in keys.c
res [Wed, 16 Jan 2008 11:03:10 +0000 (11:03 +0000)]
Fix CL_VM_InputeEvent prototype in keys.c

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

12 years agoGecko: load OffscreenGecko dynamically
res [Wed, 16 Jan 2008 10:52:17 +0000 (10:52 +0000)]
Gecko: load OffscreenGecko dynamically

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

12 years agofix stupid "using port 0" message
divverent [Tue, 15 Jan 2008 23:31:45 +0000 (23:31 +0000)]
fix stupid "using port 0" message

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

12 years agoadded snd_modplug.[ch] to MSVS projects (thanks to Xandy for reporting
havoc [Tue, 15 Jan 2008 05:26:00 +0000 (05:26 +0000)]
added snd_modplug.[ch] to MSVS projects (thanks to Xandy for reporting

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

12 years agomake server name/map name sorting case insensitive
divverent [Mon, 14 Jan 2008 19:28:28 +0000 (19:28 +0000)]
make server name/map name sorting case insensitive

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

12 years agofix one typo and one uncleanness in the glsl shader, fixes compilation problems for...
divverent [Sun, 13 Jan 2008 20:10:36 +0000 (20:10 +0000)]
fix one typo and one uncleanness in the glsl shader, fixes compilation problems for Morphed

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

12 years agoalways look for spawnfunc_%s first when spawning an entity by classname (for Q3A...
divverent [Sun, 13 Jan 2008 10:12:30 +0000 (10:12 +0000)]
always look for spawnfunc_%s first when spawning an entity by classname (for Q3A map compatibility - ammo_rockets is used as classname in Q3A and as field in Q1)

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

12 years agogo back to using MATERIALFLAGMASK_DEPTHSORTED for transparent sorting
havoc [Sun, 13 Jan 2008 08:55:59 +0000 (08:55 +0000)]
go back to using MATERIALFLAGMASK_DEPTHSORTED for transparent sorting
clear MATERIALFLAG_BLENDED on watershader materials

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

12 years agofix typo that broke rtlights on vertex texture blend materials
havoc [Sun, 13 Jan 2008 08:53:29 +0000 (08:53 +0000)]
fix typo that broke rtlights on vertex texture blend materials

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

12 years agomake packet_f work on dedicated servers too
divverent [Sat, 12 Jan 2008 21:33:06 +0000 (21:33 +0000)]
make packet_f work on dedicated servers too

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

12 years agofix r_glsl_dumpshader
divverent [Sat, 12 Jan 2008 16:41:34 +0000 (16:41 +0000)]
fix r_glsl_dumpshader

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

12 years agonet_slist_pause
divverent [Fri, 11 Jan 2008 20:52:19 +0000 (20:52 +0000)]

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

12 years agoFix some bugs in the getsurfacepointattribute code.
black [Thu, 10 Jan 2008 15:42:09 +0000 (15:42 +0000)]
Fix some bugs in the getsurfacepointattribute code.

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

12 years agoFix the bmodel collision bug in csqc.
black [Thu, 10 Jan 2008 13:40:57 +0000 (13:40 +0000)]
Fix the bmodel collision bug in csqc.
clvm's setmodel and setmodelindex also update the min, max and size now (just like they do in sqc).

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

12 years agoFix a bug in the automatically generated builtin file.
black [Thu, 10 Jan 2008 10:07:32 +0000 (10:07 +0000)]
Fix a bug in the automatically generated builtin file.

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

12 years agoFix runaway mipmap upload when NULL texture data was specified.
res [Thu, 10 Jan 2008 09:05:03 +0000 (09:05 +0000)]
Fix runaway mipmap upload when NULL texture data was specified.

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

12 years agoimplemented q3bsp vertex texture blending (GL20 path only)
havoc [Thu, 10 Jan 2008 03:08:33 +0000 (03:08 +0000)]
implemented q3bsp vertex texture blending (GL20 path only)

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

12 years agouse GL20TU_ enum values instead of constant texture unit numbers, to
havoc [Thu, 10 Jan 2008 03:05:29 +0000 (03:05 +0000)]
use GL20TU_ enum values instead of constant texture unit numbers, to
make maintenance easier
some cleanup

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

12 years agoreworked transparent sorting of MATERIALFLAG_BLENDED to not sort water
havoc [Thu, 10 Jan 2008 02:36:32 +0000 (02:36 +0000)]
reworked transparent sorting of MATERIALFLAG_BLENDED to not sort water
surfaces with refraction rendering (which are opaque but use a texture)

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

12 years agoremove unused allowedpermutations field
havoc [Thu, 10 Jan 2008 02:25:34 +0000 (02:25 +0000)]
remove unused allowedpermutations field

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

12 years agouse cl.worldmodel in r_editlights_reload code as it is invoked from the
havoc [Thu, 10 Jan 2008 01:51:40 +0000 (01:51 +0000)]
use cl.worldmodel in r_editlights_reload code as it is invoked from the
newmap callback

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

12 years agoremove prvm_boundscheck cvar (security hole) and force bounds check on unless DP...
divverent [Wed, 9 Jan 2008 11:28:22 +0000 (11:28 +0000)]
remove prvm_boundscheck cvar (security hole) and force bounds check on unless DP is compiled with -DPRVM_BOUNDSCHECK_CVAR (for those who REALLY want to be able to turn it off)

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

12 years agochanged hvec types to half types fixing warnings in GLSL shader
havoc [Wed, 9 Jan 2008 01:36:06 +0000 (01:36 +0000)]
changed hvec types to half types fixing warnings in GLSL shader

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

12 years agoAdd an edu2 prototype gamemode.
black [Wed, 9 Jan 2008 00:35:04 +0000 (00:35 +0000)]
Add an edu2 prototype gamemode.

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

12 years agoremove -appdata option... make -mygames option instead (easier to find for users...
divverent [Tue, 8 Jan 2008 19:37:10 +0000 (19:37 +0000)]
remove -appdata option... make -mygames option instead (easier to find for users). As before, only use that path if explicitly specified or if there is no other way.

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

12 years agono O_APPEND here
divverent [Tue, 8 Jan 2008 10:46:50 +0000 (10:46 +0000)]
no O_APPEND here

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

12 years agomake it use APPDATA right
divverent [Tue, 8 Jan 2008 09:50:19 +0000 (09:50 +0000)]
make it use APPDATA right

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

12 years agonew options:
divverent [Tue, 8 Jan 2008 09:30:48 +0000 (09:30 +0000)]
new options:
-appdata (Windows)
-nohome (Linux)
-userdir /path/to/userdir/to/be/used/instead/of/home/username/.darkplaces

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

12 years agofix warning
havoc [Tue, 8 Jan 2008 03:50:09 +0000 (03:50 +0000)]
fix warning

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

12 years agoFlush comment fixes and update dpmod's csqc_builtins.h.
black [Mon, 7 Jan 2008 17:34:19 +0000 (17:34 +0000)]
Flush comment fixes and update dpmod's csqc_builtins.h.

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

12 years agoAdd some builtin definitions to the builtin list (necessary for automated builtin...
black [Mon, 7 Jan 2008 16:49:50 +0000 (16:49 +0000)]
Add some builtin definitions to the builtin list (necessary for automated builtin qc creation).

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

12 years agoMove a part of r_refdef_t into a new r_refdef_scene_t struct and refactor the code...
black [Mon, 7 Jan 2008 14:28:25 +0000 (14:28 +0000)]
Move a part of r_refdef_t into a new r_refdef_scene_t struct and refactor the code to use it.
The menu now only uses its own scene. This fixes all issues I know of, but this is only the first step -
a bigger clean-up is still needed.

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

12 years agooops... fixed a security issue with expanding aliases
divverent [Sun, 6 Jan 2008 22:23:39 +0000 (22:23 +0000)]
oops... fixed a security issue with expanding aliases

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

12 years agoadd rcon_restricted_password and rcon_restricted_commands - this allows to give out...
divverent [Sun, 6 Jan 2008 22:00:17 +0000 (22:00 +0000)]
add rcon_restricted_password and rcon_restricted_commands - this allows to give out a "lesser" rcon password that can only be used to execute commands in a small list, instead of full console access

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

12 years agoadd r_textcontrast to complement t_textbrightness
divverent [Sun, 6 Jan 2008 19:54:27 +0000 (19:54 +0000)]
add r_textcontrast to complement t_textbrightness

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

12 years agoFix two bugs (everything should behave as usual now, when you're not using menu rende...
black [Sun, 6 Jan 2008 01:05:25 +0000 (01:05 +0000)]
Fix two bugs (everything should behave as usual now, when you're not using menu rendering).

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