]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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
this)

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

16 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

16 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

16 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

16 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
decisions
clear MATERIALFLAG_BLENDED on watershader materials

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

16 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

16 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

16 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

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

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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 years agomake Nexuiz flag status icon position cvar defined
divverent [Sun, 6 Jan 2008 00:11:01 +0000 (00:11 +0000)]
make Nexuiz flag status icon position cvar defined

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

16 years agofix black fog outline bug on quake sprites
havoc [Sat, 5 Jan 2008 23:15:32 +0000 (23:15 +0000)]
fix black fog outline bug on quake sprites

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

16 years agoAdd CSQC rendering support to the menu (uses the same interface as the CSQC VM).
black [Sat, 5 Jan 2008 22:46:48 +0000 (22:46 +0000)]
Add CSQC rendering support to the menu (uses the same interface as the CSQC VM).
Move temp entities to the renderer code (because only temporary render entities are needed).
Rework the polygon code to support multiple VMs.
Credits and thanks to res2k (and me ;)).

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

16 years agorate limit the old quake protocols by frequency
havoc [Sat, 5 Jan 2008 22:33:58 +0000 (22:33 +0000)]
rate limit the old quake protocols by frequency
raised packet size limit on DP1-4 protocols to what they were in those
old versions of the engine (since they can not handle packet size
limiting of any kind)

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

16 years agocorrected a buffer size
havoc [Sat, 5 Jan 2008 22:32:36 +0000 (22:32 +0000)]
corrected a buffer size

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

16 years agoadded an optimization note (should be tracking number of active gecko
havoc [Sat, 5 Jan 2008 22:32:22 +0000 (22:32 +0000)]
added an optimization note (should be tracking number of active gecko
instances, not always iterating to max)

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

16 years agothe -profilegameonly option now stops profiling in CL_Disconnect to give
havoc [Sat, 5 Jan 2008 22:31:55 +0000 (22:31 +0000)]
the -profilegameonly option now stops profiling in CL_Disconnect to give
better results (especially if playing with it on, rather than just
profiling timedemos)
improved handling of cl.num_dlights

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

16 years agosignificant cleanup of GLSL setup code
havoc [Sat, 5 Jan 2008 22:28:55 +0000 (22:28 +0000)]
significant cleanup of GLSL setup code

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

16 years agoGLSL code now prints the number of lines of leading text for warnings as
havoc [Sat, 5 Jan 2008 22:25:08 +0000 (22:25 +0000)]
GLSL code now prints the number of lines of leading text for warnings as
well as error messages (making warnings easier to fix)

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

16 years agoadded two missing CL_SignonReply calls in qw protocol parsing (this
havoc [Sat, 5 Jan 2008 22:23:27 +0000 (22:23 +0000)]
added two missing CL_SignonReply calls in qw protocol parsing (this
fixes -profilegameonly on QW games)

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

16 years agoload rtlights file sooner in map change process, to avoid it showing up
havoc [Sat, 5 Jan 2008 22:22:32 +0000 (22:22 +0000)]
load rtlights file sooner in map change process, to avoid it showing up
in -profilegameonly

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

16 years agokeep track of number of active explosions rather than scanning up to
havoc [Sat, 5 Jan 2008 05:37:43 +0000 (05:37 +0000)]
keep track of number of active explosions rather than scanning up to
MAX_EXPLOSIONS every frame

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

16 years agoRemoved a bunch of warnings
molivier [Fri, 4 Jan 2008 23:20:54 +0000 (23:20 +0000)]
Removed a bunch of warnings

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

16 years agoMoved initializations of the pixel_size and attributes fields in the TGA header ealie...
molivier [Fri, 4 Jan 2008 23:13:27 +0000 (23:13 +0000)]
Moved initializations of the pixel_size and attributes fields in the TGA header ealier, so they would be properly set before the call to PrintTargaHeader()

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

16 years agoRefactor the code to make r_view and r_viewcache members of r_refdef,
black [Fri, 4 Jan 2008 22:15:36 +0000 (22:15 +0000)]
Refactor the code to make r_view and r_viewcache members of r_refdef,
Remove an unused variable from CL_VM_InputEvent.

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

16 years agoChanging passing of key event ASCII codes to CSQC to use an additional function argum...
res [Fri, 4 Jan 2008 18:06:31 +0000 (18:06 +0000)]
Changing passing of key event ASCII codes to CSQC to use an additional function argument for CSQC_InputEvent instead of a global.

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

16 years agoMade gecko bindings a bit more chatty in developer mode.
res [Fri, 4 Jan 2008 17:45:53 +0000 (17:45 +0000)]
Made gecko bindings a bit more chatty in developer mode.

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

16 years agomake keys line up in keys.c and key.h for easier verifying
divverent [Fri, 4 Jan 2008 12:35:35 +0000 (12:35 +0000)]
make keys line up in keys.c and key.h for easier verifying

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

16 years agoProvide 'ascii' key input to CSQC.
res [Thu, 3 Jan 2008 17:54:30 +0000 (17:54 +0000)]
Provide 'ascii' key input to CSQC.

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

16 years agoFix crash in MD3 loading when no animscenes are loaded
res [Thu, 3 Jan 2008 17:52:28 +0000 (17:52 +0000)]
Fix crash in MD3 loading when no animscenes are loaded

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

16 years agobefore calling Mod_CanSeeBox_Trace or TraceLineOfSight, check if the model actually...
divverent [Wed, 2 Jan 2008 13:48:57 +0000 (13:48 +0000)]
before calling Mod_CanSeeBox_Trace or TraceLineOfSight, check if the model actually supports them (prevents crash with missing worldmodel)

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

16 years agofix bug in saveconfig that caused config to get saved to weird random file names...
divverent [Wed, 2 Jan 2008 09:38:35 +0000 (09:38 +0000)]
fix bug in saveconfig that caused config to get saved to weird random file names on quit

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

16 years agoMade CSQC_AddRenderEdict compute the tag matrix if a tag is set.
res [Wed, 2 Jan 2008 01:08:11 +0000 (01:08 +0000)]
Made CSQC_AddRenderEdict compute the tag matrix if a tag is set.

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

16 years agoFixed flawed comparison in VM_CL_gettagindex that always reported the first precached...
res [Wed, 2 Jan 2008 01:03:41 +0000 (01:03 +0000)]
Fixed flawed comparison in VM_CL_gettagindex that always reported the first precached client model as not precached.

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

16 years agoFixed crash in CL_GetTagMatrix when no 'scale' entity field is present.
res [Wed, 2 Jan 2008 00:58:53 +0000 (00:58 +0000)]
Fixed crash in CL_GetTagMatrix when no 'scale' entity field is present.

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

16 years agoupdate of the Dev-C++ project
divverent [Tue, 1 Jan 2008 21:42:44 +0000 (21:42 +0000)]
update of the Dev-C++ project

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

16 years agoNexuiz: play intro video on startup by QC now
divverent [Tue, 1 Jan 2008 15:05:37 +0000 (15:05 +0000)]
Nexuiz: play intro video on startup by QC now

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

16 years agoadd cvar prvm_backtraceforwarning
divverent [Tue, 1 Jan 2008 14:19:44 +0000 (14:19 +0000)]
add cvar prvm_backtraceforwarning

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

16 years agoremoved #include of quakedef.h as it doesn't seem necessary
havoc [Mon, 31 Dec 2007 16:38:55 +0000 (16:38 +0000)]
removed #include of quakedef.h as it doesn't seem necessary

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

16 years agooptimized PolygonF_Divide/PolygonD_Divide functions, now performing only
havoc [Mon, 31 Dec 2007 16:36:14 +0000 (16:36 +0000)]
optimized PolygonF_Divide/PolygonD_Divide functions, now performing only
one dot-product per iteration rather than two
added PolygonF_Clip/PolygonD_Clip functions which keep only the front
side

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

16 years agoMade CSQC VM initialization prefer the program downloaded from the server over the...
res [Mon, 31 Dec 2007 13:49:54 +0000 (13:49 +0000)]
Made CSQC VM initialization prefer the program downloaded from the server over the local version.

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

16 years agoadd a new key dest key_menu_grabbed that behaves like key_menu, but also passes funct...
divverent [Mon, 31 Dec 2007 13:37:32 +0000 (13:37 +0000)]
add a new key dest key_menu_grabbed that behaves like key_menu, but also passes function keys to the menu; useful for key bind editors

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