r4404 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Sep 7 12:18:23 EDT 2008
Author: div0
Date: 2008-09-07 12:18:23 -0400 (Sun, 07 Sep 2008)
New Revision: 4404
Modified:
trunk/data/qcsrc/server/portals.qc
Log:
possibly fix velocity-killer bug
Modified: trunk/data/qcsrc/server/portals.qc
===================================================================
--- trunk/data/qcsrc/server/portals.qc 2008-09-07 16:12:53 UTC (rev 4403)
+++ trunk/data/qcsrc/server/portals.qc 2008-09-07 16:18:23 UTC (rev 4404)
@@ -113,15 +113,15 @@
safe = teleporter.enemy.portal_safe_origin; // a valid player origin
step = to + ((safe - to) * v_forward) * v_forward;
- tracebox(safe, PL_MIN, PL_MAX, step, MOVE_NOMONSTERS, player);
+ tracebox(safe, player.mins - '1 1 1', player.maxs + '1 1 1', step, MOVE_NOMONSTERS, player);
if(trace_startsolid)
{
- bprint("'safe' teleport location is not safe!\n");
+ print("'safe' teleport location is not safe!\n");
// FAIL TODO why does this happen?
return 0;
}
safe = trace_endpos;
- tracebox(safe, PL_MIN, PL_MAX, to, MOVE_NOMONSTERS, player);
+ tracebox(safe, player.mins - '1 1 1', player.maxs + '1 1 1', to, MOVE_NOMONSTERS, player);
if(trace_startsolid)
error("trace_endpos in solid!");
to = trace_endpos;
More information about the nexuiz-commits
mailing list