[nexuiz-commits] r8276 - trunk/data/qcsrc/common
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Nov 14 04:03:50 EST 2009
Author: div0
Date: 2009-11-14 04:03:49 -0500 (Sat, 14 Nov 2009)
New Revision: 8276
Modified:
trunk/data/qcsrc/common/util.qc
Log:
change a shot origin error to warning
Modified: trunk/data/qcsrc/common/util.qc
===================================================================
--- trunk/data/qcsrc/common/util.qc 2009-11-12 19:34:24 UTC (rev 8275)
+++ trunk/data/qcsrc/common/util.qc 2009-11-14 09:03:49 UTC (rev 8276)
@@ -1531,11 +1531,20 @@
y = rint(v_y * 4) + 128;
z = rint(v_z * 4) + 128;
if(x > 255 || x < 0)
- error("shot origin x out of bounds");
+ {
+ print("shot origin ", vtos(v), " x out of bounds\n");
+ x = bound(0, x, 255);
+ }
if(y > 255 || y < 0)
- error("shot origin y out of bounds");
+ {
+ print("shot origin ", vtos(v), " y out of bounds\n");
+ y = bound(0, y, 255);
+ }
if(z > 255 || z < 0)
- error("shot origin z out of bounds");
+ {
+ print("shot origin ", vtos(v), " z out of bounds\n");
+ z = bound(0, z, 255);
+ }
return x * 0x10000 + y * 0x100 + z;
}
vector decompressShotOrigin(float f)
More information about the nexuiz-commits
mailing list