r4626 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Oct 4 15:47:02 EDT 2008
Author: div0
Date: 2008-10-04 15:47:01 -0400 (Sat, 04 Oct 2008)
New Revision: 4626
Modified:
trunk/data/qcsrc/server/portals.qc
Log:
ignore "trace_endpos in solid" error as it sometimes can actually happen
Modified: trunk/data/qcsrc/server/portals.qc
===================================================================
--- trunk/data/qcsrc/server/portals.qc 2008-10-04 18:44:07 UTC (rev 4625)
+++ trunk/data/qcsrc/server/portals.qc 2008-10-04 19:47:01 UTC (rev 4626)
@@ -127,7 +127,11 @@
safe = trace_endpos + normalize(safe - trace_endpos) * 0;
tracebox(safe, player.mins - SAFENUDGE, player.maxs + SAFENUDGE, to, MOVE_NOMONSTERS, player);
if(trace_startsolid)
- error("trace_endpos in solid!");
+ {
+ print("trace_endpos in solid, this can't be!\n");
+ // FAIL TODO why does this happen? (reported by MrBougo)
+ return 0;
+ }
to = trace_endpos + normalize(safe - trace_endpos) * 0;
//print(vtos(to), "\n");
More information about the nexuiz-commits
mailing list