]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
14 years agofix that bounds check, it was stupid (< 0 = builtin)
divverent [Wed, 19 Aug 2009 06:21:14 +0000 (06:21 +0000)]
fix that bounds check, it was stupid (< 0 = builtin)

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

14 years agofix typo in 9126
divverent [Wed, 19 Aug 2009 06:20:31 +0000 (06:20 +0000)]
fix typo in 9126

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

14 years agobounds check function calls, and entity indexes in LOAD instructions
divverent [Wed, 19 Aug 2009 06:19:36 +0000 (06:19 +0000)]
bounds check function calls, and entity indexes in LOAD instructions

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

14 years agoadd comments for missing bounds checks; bounds check function start offsets
divverent [Wed, 19 Aug 2009 06:19:12 +0000 (06:19 +0000)]
add comments for missing bounds checks; bounds check function start offsets

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

14 years agoprogs: require the last statement to be GOTO, DONE or RETURN. Ensures the statement...
divverent [Wed, 19 Aug 2009 06:14:04 +0000 (06:14 +0000)]
progs: require the last statement to be GOTO, DONE or RETURN. Ensures the statement pointer can never fall out of the progs.

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

14 years agosupport mute-when-idle properly
divverent [Wed, 19 Aug 2009 06:11:51 +0000 (06:11 +0000)]
support mute-when-idle properly

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

14 years agofix motionblur cvar descriptions, also: First commit! :D
samual [Tue, 18 Aug 2009 23:57:47 +0000 (23:57 +0000)]
fix motionblur cvar descriptions, also: First commit! :D

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

14 years agofix div0's bug
havoc [Tue, 18 Aug 2009 23:40:33 +0000 (23:40 +0000)]
fix div0's bug

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

14 years agomark another place of missing bounds check
divverent [Tue, 18 Aug 2009 16:27:16 +0000 (16:27 +0000)]
mark another place of missing bounds check

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

14 years agoidentify two missing bounds checks (fix them later)
divverent [Tue, 18 Aug 2009 16:02:51 +0000 (16:02 +0000)]
identify two missing bounds checks (fix them later)

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

14 years agofix two SOCKLEN_Ts
divverent [Sun, 16 Aug 2009 17:11:32 +0000 (17:11 +0000)]
fix two SOCKLEN_Ts

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

14 years agofix pitchsign warnings in dev-c++
divverent [Sun, 16 Aug 2009 17:06:34 +0000 (17:06 +0000)]
fix pitchsign warnings in dev-c++

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

14 years agocvar con_chatsound (by Surb)
divverent [Sun, 16 Aug 2009 16:28:46 +0000 (16:28 +0000)]
cvar con_chatsound (by Surb)

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

14 years agohonor alpha in showsurfaces 3
divverent [Sun, 16 Aug 2009 16:21:37 +0000 (16:21 +0000)]
honor alpha in showsurfaces 3

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

14 years agofix reset of capturevideo fps
divverent [Sun, 16 Aug 2009 11:26:44 +0000 (11:26 +0000)]
fix reset of capturevideo fps

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

14 years agoremove wait states for SDL
divverent [Fri, 14 Aug 2009 20:26:53 +0000 (20:26 +0000)]
remove wait states for SDL

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

14 years agoexperimental change: do a float compare for OP_IF and OP_IFNOT, so negative
divverent [Fri, 14 Aug 2009 19:39:24 +0000 (19:39 +0000)]
experimental change: do a float compare for OP_IF and OP_IFNOT, so negative
zero float value counts as false. No other value in QC can have the bit pattern
0x80000000 as long as no int type is added.

I have verified that the only false floats on x86_64 and i386 are 0 and
0x80000000.  However, this may fail on other platforms! (but then, OR_F and
others would also fail in some cases, as fteqcc also uses it for "float ||
entity").

When an "int" type is introduced, we'll need a new IF_I and IFNOT_I instruction
as then this would REALLY have a bad impact.

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

14 years agofix a small bug in prvm_getstring (returning NULL instead of "")
divverent [Fri, 14 Aug 2009 19:29:03 +0000 (19:29 +0000)]
fix a small bug in prvm_getstring (returning NULL instead of "")

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

14 years agocvar cl_movecliptokeyboard: clip movement vectors to the keyboard states (1), or...
divverent [Fri, 14 Aug 2009 12:02:31 +0000 (12:02 +0000)]
cvar cl_movecliptokeyboard: clip movement vectors to the keyboard states (1), or directions (2) (in case they are generated by an analog way, e.g. mouse move, or joystick).

Mostly for matching Nexuiz's anti-strafebot code.

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

14 years agoSDL/Win32: queue a vid_restart if resized; this should fix vid_resizable issue on...
divverent [Fri, 14 Aug 2009 05:29:50 +0000 (05:29 +0000)]
SDL/Win32: queue a vid_restart if resized; this should fix vid_resizable issue on Win32 with SDL

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

14 years ago493
havoc [Wed, 12 Aug 2009 01:29:45 +0000 (01:29 +0000)]
493

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

14 years agopatch from Jason Hatton adding a release-profile build target that uses
havoc [Sun, 9 Aug 2009 00:31:17 +0000 (00:31 +0000)]
patch from Jason Hatton adding a release-profile build target that uses
the results of -fprofile-arcs on a previous run of the profile build,
and says it greatly improves framerates

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

14 years agonew command line option -modname to override DP's idea of com_modname (useful to...
divverent [Sat, 8 Aug 2009 15:42:09 +0000 (15:42 +0000)]
new command line option -modname to override DP's idea of com_modname (useful to e.g. send another mod name to the master server)

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

14 years agodisable sv_gameplayfix_slidemoveprojectiles in hipnotic mission pack
havoc [Sat, 8 Aug 2009 08:50:16 +0000 (08:50 +0000)]
disable sv_gameplayfix_slidemoveprojectiles in hipnotic mission pack
because it makes prox mines bounce off of surfaces

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

14 years agoactually, set the threshold to 10.
divverent [Fri, 7 Aug 2009 18:41:03 +0000 (18:41 +0000)]
actually, set the threshold to 10.
If an entity receive function takes now 0.2222 seconds, and repeatedly does so when the ent is received, it's insane even at initialization.

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

14 years agoStupid hack: force an entity frame once 5 frames were skipped.
divverent [Fri, 7 Aug 2009 18:39:53 +0000 (18:39 +0000)]
Stupid hack: force an entity frame once 5 frames were skipped.
Fixes issues with cl_movement replay taking longer and longer when standing still and nothing on the map moves, while not causing so many empty entity frames that replay of lost frames can cause problems (well, in theory it now can, if an entity takes 5+3 server frames to be processed on the client, that is 0.1sec at a sys_ticrate matching 72fps - so try to avoid doing overlong processing in CSQC entity receive functions).

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

14 years agoadd a fs_gamedir cvar containing the currently active gamedirs (for use by menu QC...
divverent [Fri, 7 Aug 2009 05:55:43 +0000 (05:55 +0000)]
add a fs_gamedir cvar containing the currently active gamedirs (for use by menu QC to know which one is active)

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

14 years agofor now, turn off MEMPARANOIA
divverent [Fri, 7 Aug 2009 05:55:22 +0000 (05:55 +0000)]
for now, turn off MEMPARANOIA

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

14 years agofix use of variable name "dir"
divverent [Fri, 7 Aug 2009 04:35:21 +0000 (04:35 +0000)]
fix use of variable name "dir"

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

14 years agomenu QC builtin getgamedirinfo(float gamedirno, float index);
divverent [Thu, 6 Aug 2009 19:14:30 +0000 (19:14 +0000)]
menu QC builtin getgamedirinfo(float gamedirno, float index);
index = 0: directory name
index = 1: description (modinfo.txt content)

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

14 years agoprovide a list of all gamedirs with modinfo.txt in fs_all_gamedirs for later use...
divverent [Thu, 6 Aug 2009 19:06:22 +0000 (19:06 +0000)]
provide a list of all gamedirs with modinfo.txt in fs_all_gamedirs for later use by menu

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

14 years agorestructuring for gamedir enumerating (cannot enumerate yet);
divverent [Thu, 6 Aug 2009 18:33:48 +0000 (18:33 +0000)]
restructuring for gamedir enumerating (cannot enumerate yet);
also accept "gamedir" when it only exists in the user home dir

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

14 years agomaybe it compiles now
divverent [Wed, 5 Aug 2009 18:41:55 +0000 (18:41 +0000)]
maybe it compiles now

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

14 years agoadd missing functions
divverent [Wed, 5 Aug 2009 18:41:01 +0000 (18:41 +0000)]
add missing functions

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

14 years agoadd missing mainDisplay ina gl
divverent [Wed, 5 Aug 2009 18:36:22 +0000 (18:36 +0000)]
add missing mainDisplay ina gl

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

14 years agoagl: experimental code to enumerate video modes (untested, uncompiled)
divverent [Wed, 5 Aug 2009 18:13:34 +0000 (18:13 +0000)]
agl: experimental code to enumerate video modes (untested, uncompiled)

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

14 years agofix crash in SDL mode listing
divverent [Wed, 5 Aug 2009 17:05:37 +0000 (17:05 +0000)]
fix crash in SDL mode listing

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

14 years agofixes for vid_wgl
divverent [Wed, 5 Aug 2009 13:36:58 +0000 (13:36 +0000)]
fixes for vid_wgl

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

14 years agomove resolution enumerating to the RIGHT point
divverent [Wed, 5 Aug 2009 13:30:03 +0000 (13:30 +0000)]
move resolution enumerating to the RIGHT point

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

14 years agoadd bounds check to menu function to query resolutions
divverent [Wed, 5 Aug 2009 13:04:50 +0000 (13:04 +0000)]
add bounds check to menu function to query resolutions

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

14 years agoglx, sdl, wgl: autodetect all supported video modes, override the Quake menu's list...
divverent [Wed, 5 Aug 2009 12:55:45 +0000 (12:55 +0000)]
glx, sdl, wgl: autodetect all supported video modes, override the Quake menu's list by it

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

14 years agoonground check: don't trace down by 2 units but just by one; now clientside doublejum...
divverent [Tue, 4 Aug 2009 19:41:01 +0000 (19:41 +0000)]
onground check: don't trace down by 2 units but just by one; now clientside doublejump bug cannot happen below 300fps

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

14 years agogameversion_min, gameversion_max, to support a RANGE of compatible game versions...
divverent [Mon, 3 Aug 2009 19:14:00 +0000 (19:14 +0000)]
gameversion_min, gameversion_max, to support a RANGE of compatible game versions (off by default)

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

14 years agoremove some unfounded warnings of some gcc versions :P
divverent [Mon, 3 Aug 2009 16:02:59 +0000 (16:02 +0000)]
remove some unfounded warnings of some gcc versions :P

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

14 years agoCollision: insert a really stupid workaround: make every trace 1qu longer, and retroa...
divverent [Mon, 3 Aug 2009 11:53:47 +0000 (11:53 +0000)]
Collision: insert a really stupid workaround: make every trace 1qu longer, and retroactively shrink the trace when done.

Bug this works around for: when doing a trace from A to B, B being just slightly inside solid, the trace ends "successfully" with fraction 1. However, a trace starting in B will be startsolid. This workaround removes this inconsistency, which sometimes causes map fallthrough, and should have no other side effects, not even a noticable performance impact.

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

14 years agounsticking: properly handle playerclip
divverent [Sun, 2 Aug 2009 10:44:55 +0000 (10:44 +0000)]
unsticking: properly handle playerclip

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

14 years agoabort ANY movetype_walk move once a touch function moved the player
divverent [Sat, 1 Aug 2009 20:31:24 +0000 (20:31 +0000)]
abort ANY movetype_walk move once a touch function moved the player

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

14 years agofix typo in last commit
divverent [Sat, 1 Aug 2009 19:42:54 +0000 (19:42 +0000)]
fix typo in last commit

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

14 years agoalias model: fix tracebox
divverent [Sat, 1 Aug 2009 15:31:42 +0000 (15:31 +0000)]
alias model: fix tracebox

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

14 years agoproperly handle the case that the touch fucntion teleported the player
divverent [Sat, 1 Aug 2009 15:20:46 +0000 (15:20 +0000)]
properly handle the case that the touch fucntion teleported the player

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

14 years agofix a bug in the teleport detection that made it hit VERY often
divverent [Fri, 31 Jul 2009 12:54:17 +0000 (12:54 +0000)]
fix a bug in the teleport detection that made it hit VERY often

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

14 years agotiny behaviour changes to MOVETYPE_WALK (players) that need thorough testing:
divverent [Fri, 31 Jul 2009 11:45:28 +0000 (11:45 +0000)]
tiny behaviour changes to MOVETYPE_WALK (players) that need thorough testing:

- SV_LinkEntity gets called before calling touch handlers so findradius works in impact-caused touch function calls. However, area grid touching is only performed at the end of the move.
- the onground flag and the groundentity are updated after, not before, calling the touch functions (PLEASE TELL ME if this was a bad change!)
- the correct MOVE_ type is used for the touch (so spectators that have not gotten their MOVETYPE changed cannot cause projectiles to explode)
- a walk-moving SOLID_NOT therefore never causes touch functions to be called
- in case the touch function modifies the origin field, the move is aborted and a teleport is assumed; this should enable mods to make solid teleporters/portals that work at any impact velocity and are not bound by the area grid limitations of not working for big velocities

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

14 years agofix compile error
havoc [Fri, 31 Jul 2009 09:57:06 +0000 (09:57 +0000)]
fix compile error

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

14 years agomade num_poses always be the number of poses in a model, not the amount
havoc [Fri, 31 Jul 2009 09:48:15 +0000 (09:48 +0000)]
made num_poses always be the number of poses in a model, not the amount
of animation bone data (this fixed psk loading crashes)

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

14 years agohopefully fix saturation without postprocess
divverent [Sat, 25 Jul 2009 08:16:47 +0000 (08:16 +0000)]
hopefully fix saturation without postprocess

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

14 years agounbound conwidth/conheight a little
divverent [Sat, 25 Jul 2009 07:37:39 +0000 (07:37 +0000)]
unbound conwidth/conheight a little

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

14 years agothis seems to fix autosprite2
divverent [Thu, 23 Jul 2009 18:31:08 +0000 (18:31 +0000)]
this seems to fix autosprite2

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

14 years agoimprove collision stride parameters, improves server performance on testcase.pk3...
divverent [Wed, 22 Jul 2009 21:10:50 +0000 (21:10 +0000)]
improve collision stride parameters, improves server performance on testcase.pk3 by another 5%

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

14 years agofixes for the latest commits
divverent [Wed, 22 Jul 2009 12:11:32 +0000 (12:11 +0000)]
fixes for the latest commits

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

14 years agoalso optimize findbetterlocation-like functions to use combined bboxes on patches...
divverent [Wed, 22 Jul 2009 11:04:36 +0000 (11:04 +0000)]
also optimize findbetterlocation-like functions to use combined bboxes on patches; SHOULD fix "low fps when shooting patch with machine gun" issue. Will test it later.

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

14 years agorefactoring as preparation for upcoming optimization
divverent [Wed, 22 Jul 2009 10:57:53 +0000 (10:57 +0000)]
refactoring as preparation for upcoming optimization

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

14 years agoa minor cleanup; also generate the combined bboxes for the render patches (not used...
divverent [Wed, 22 Jul 2009 10:52:09 +0000 (10:52 +0000)]
a minor cleanup; also generate the combined bboxes for the render patches (not used yet, will be used to fix slowness with findbetterlocation)

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

14 years agocurves: optimize their order for the bbox optimization
divverent [Wed, 22 Jul 2009 10:34:31 +0000 (10:34 +0000)]
curves: optimize their order for the bbox optimization

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

14 years agomod_q3bsp_optimizedtraceline: also do a line trace if the mins/maxs of the trace...
divverent [Wed, 22 Jul 2009 07:43:30 +0000 (07:43 +0000)]
mod_q3bsp_optimizedtraceline: also do a line trace if the mins/maxs of the trace are NOT the zero vector, but equal.
This fixes problems with grenades falling through patches in Nexuiz.
MAYBE this problem only affects zero size or very small bboxes?

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

14 years agoCollision against patches: do some major optimizations.
divverent [Tue, 21 Jul 2009 19:23:09 +0000 (19:23 +0000)]
Collision against patches: do some major optimizations.
Keep an array of combined mins and maxs of every 32 consecutive triangles of the patch mesh.
Always collide against the mins/maxs in this array first before actually trying the triangles.
Improves collision performance a LOT, testcase.pk3 (a huge 31x31 patch mesh) becomes playable.
mod_q3bsp_collision_curves_stride value still needs optimizing, I think.

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

14 years agoexperimental makefile option make DP_LINK_TO_JPEG=1 - use libjpeg.h instead of dynami...
divverent [Mon, 20 Jul 2009 15:30:38 +0000 (15:30 +0000)]
experimental makefile option make DP_LINK_TO_JPEG=1 - use libjpeg.h instead of dynamic loading of libjpeg at startup.

Can anyone test this against libjpeg7?

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

14 years agocs_*project: return console/draw* coordinate space. No more multiplying by vid_conwid...
divverent [Fri, 17 Jul 2009 08:17:31 +0000 (08:17 +0000)]
cs_*project: return console/draw* coordinate space. No more multiplying by vid_conwidth/vid_width needed!

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

14 years agofix v_flipped in cs_unproject (it was correct in cs_project) if a view port is set up
divverent [Fri, 17 Jul 2009 07:56:01 +0000 (07:56 +0000)]
fix v_flipped in cs_unproject (it was correct in cs_project) if a view port is set up

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

14 years agosome typo fixes, + unalias command
divverent [Thu, 16 Jul 2009 19:44:18 +0000 (19:44 +0000)]
some typo fixes, + unalias command

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

14 years agorename internal var, no real change
divverent [Thu, 16 Jul 2009 06:45:10 +0000 (06:45 +0000)]
rename internal var, no real change

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

14 years agomotion blur/dmaage blur config change by Samual, and a fix for damage blur not workin...
divverent [Thu, 16 Jul 2009 06:38:27 +0000 (06:38 +0000)]
motion blur/dmaage blur config change by Samual, and a fix for damage blur not working without motion blur

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

14 years agoonly show "shader already defined" messages if the two shaders actually mismatch
divverent [Tue, 14 Jul 2009 09:05:08 +0000 (09:05 +0000)]
only show "shader already defined" messages if the two shaders actually mismatch
for matching shaders, hide the message if developer is 0

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

14 years agofix a compile error when MEMPARANOIA is off
havoc [Sun, 12 Jul 2009 22:25:50 +0000 (22:25 +0000)]
fix a compile error when MEMPARANOIA is off

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

14 years agostabilize showfps a bit
havoc [Sun, 12 Jul 2009 22:25:26 +0000 (22:25 +0000)]
stabilize showfps a bit

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

14 years agoget uintptr_t from vadefs.h on MSVC
divverent [Sun, 12 Jul 2009 12:03:11 +0000 (12:03 +0000)]
get uintptr_t from vadefs.h on MSVC

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

14 years agodoxygen comments and config file
divverent [Wed, 8 Jul 2009 15:32:32 +0000 (15:32 +0000)]
doxygen comments and config file

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

14 years agofix rounding of drawsetcliparea coordinates (but not using round(), as that is C99)
divverent [Wed, 8 Jul 2009 15:29:20 +0000 (15:29 +0000)]
fix rounding of drawsetcliparea coordinates (but not using round(), as that is C99)

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

14 years agothanks
divverent [Wed, 8 Jul 2009 15:26:29 +0000 (15:26 +0000)]
thanks

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

14 years agofixed several warnings that appear with -std=gnu99 -pedantic
havoc [Wed, 8 Jul 2009 00:45:04 +0000 (00:45 +0000)]
fixed several warnings that appear with -std=gnu99 -pedantic

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

14 years agofix saturation (how and why did this line disappear?)
divverent [Tue, 7 Jul 2009 20:09:30 +0000 (20:09 +0000)]
fix saturation (how and why did this line disappear?)

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

14 years agomore _int changes, but these are only in the commented out integer
havoc [Tue, 7 Jul 2009 19:22:28 +0000 (19:22 +0000)]
more _int changes, but these are only in the commented out integer
support

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

14 years agouse ivector for all vector copy instructions, not vector
havoc [Tue, 7 Jul 2009 18:29:49 +0000 (18:29 +0000)]
use ivector for all vector copy instructions, not vector

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

14 years agotwice as many models loadable (for LOD and stuff)
divverent [Mon, 6 Jul 2009 06:56:39 +0000 (06:56 +0000)]
twice as many models loadable (for LOD and stuff)

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

14 years agoadd an error message
divverent [Sun, 5 Jul 2009 18:49:21 +0000 (18:49 +0000)]
add an error message

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

14 years agofix buffer overruns in sv.model_precache
divverent [Sun, 5 Jul 2009 18:47:14 +0000 (18:47 +0000)]
fix buffer overruns in sv.model_precache

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

14 years agoSupport a separate texture matrix for the background layer.
divverent [Sun, 5 Jul 2009 17:18:52 +0000 (17:18 +0000)]
Support a separate texture matrix for the background layer.

Example shader stages using it:

{
map textures/savdm6ish/#lava1.jpg
}
{
map textures/final_rage/lava.blend.tga
tcMod rotate 50
tcMod scale 2 2
tcMod scroll 0.05 0.05
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}

NOTE: you still have to specify alphaGen vertex, or DP will not use the
secondary stage! To allow static mixing of two textures, the second texture
currently must have its own alpha channel.

Stuff also possible with this: detail textures...

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

14 years agofix typo in pqrcon
divverent [Sat, 4 Jul 2009 15:04:46 +0000 (15:04 +0000)]
fix typo in pqrcon

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

14 years agoadd a second trigger for the same incompatibility detection
divverent [Fri, 3 Jul 2009 09:11:51 +0000 (09:11 +0000)]
add a second trigger for the same incompatibility detection

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

14 years agoCPMA physics: force airaccelqw=1 when strafing if using CPMA-style modded strafe...
divverent [Fri, 3 Jul 2009 08:48:29 +0000 (08:48 +0000)]
CPMA physics: force airaccelqw=1 when strafing if using CPMA-style modded strafe acceleration (otherwise, it can be used as a weird movement exploit)

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

14 years agostringwidth(): add a third font size argument (optional) to help with later porting...
divverent [Wed, 1 Jul 2009 06:39:45 +0000 (06:39 +0000)]
stringwidth(): add a third font size argument (optional) to help with later porting to freetype

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

14 years agoproperly handle comments when looking for final ; of a line
divverent [Sat, 27 Jun 2009 20:07:30 +0000 (20:07 +0000)]
properly handle comments when looking for final ; of a line

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

14 years agobetter expand variables inside comments than breaking lots of otherwise working stuff...
divverent [Sat, 27 Jun 2009 20:04:06 +0000 (20:04 +0000)]
better expand variables inside comments than breaking lots of otherwise working stuff because of bad comment detection.

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

14 years agopatch from Lardarse that makes monsters/secrets show up if they are
havoc [Sat, 27 Jun 2009 10:56:56 +0000 (10:56 +0000)]
patch from Lardarse that makes monsters/secrets show up if they are
non-zero even if the total monsters/secrets is 0

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

14 years ago* don't expand cvars in comments
divverent [Tue, 23 Jun 2009 19:11:15 +0000 (19:11 +0000)]
* don't expand cvars in comments
* improve text definition of alias
* fix SDL cd loop bug

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

14 years agoteleport bit: always reset animation there too
divverent [Sun, 21 Jun 2009 20:22:20 +0000 (20:22 +0000)]
teleport bit: always reset animation there too

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

14 years agofix a crash in dpm + framegroups
divverent [Sun, 21 Jun 2009 20:14:31 +0000 (20:14 +0000)]
fix a crash in dpm + framegroups

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

14 years agofix framegroups file parsing out of bounds errors
divverent [Sun, 21 Jun 2009 19:49:11 +0000 (19:49 +0000)]
fix framegroups file parsing out of bounds errors

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

14 years agoSupport frame groups for ALL model formats (a slightly extended version of animinfo...
divverent [Sun, 21 Jun 2009 19:34:24 +0000 (19:34 +0000)]
Support frame groups for ALL model formats (a slightly extended version of animinfo, with a fourth element being 0 when the animation is not to be looped).
With this, all model formats can be self animated, but do not need to be (simply don't make a framegroups file if you wish it to be not self animated).

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

14 years agomessagemode/commandmode: clear the string on entering the mode
divverent [Sat, 20 Jun 2009 15:01:45 +0000 (15:01 +0000)]
messagemode/commandmode: clear the string on entering the mode

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

14 years agoexperimental motion blur code (original by Samual on http://dev.alientrap.org/attachm...
divverent [Fri, 19 Jun 2009 00:02:42 +0000 (00:02 +0000)]
experimental motion blur code (original by Samual on http://dev.alientrap.org/attachments/220/Motion_Blur_RC2.diff), needs adjustments especially for damage blur

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