r4331 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Sep 4 06:55:19 EDT 2008
Author: div0
Date: 2008-09-04 06:55:19 -0400 (Thu, 04 Sep 2008)
New Revision: 4331
Modified:
trunk/data/qcsrc/server/portals.qc
Log:
bail out of a safe origin cannot be found for a portal
Modified: trunk/data/qcsrc/server/portals.qc
===================================================================
--- trunk/data/qcsrc/server/portals.qc 2008-09-04 10:34:20 UTC (rev 4330)
+++ trunk/data/qcsrc/server/portals.qc 2008-09-04 10:55:19 UTC (rev 4331)
@@ -473,6 +473,12 @@
}
portal = Portal_Spawn(own, org, ang);
+ if(!portal)
+ {
+ Portal_ClearAll(own);
+ return 0;
+ }
+
Portal_SetInPortal(own, portal);
return 1;
@@ -504,6 +510,12 @@
}
portal = Portal_Spawn(own, org, ang);
+ if(!portal)
+ {
+ Portal_ClearAll(own);
+ return 0;
+ }
+
Portal_SetOutPortal(own, portal);
return 1;
More information about the nexuiz-commits
mailing list