r5415 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Jan 6 04:54:58 EST 2009
Author: div0
Date: 2009-01-06 04:54:46 -0500 (Tue, 06 Jan 2009)
New Revision: 5415
Modified:
trunk/data/qcsrc/server/cl_client.qc
Log:
fix "loof" :P
Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc 2009-01-06 09:40:45 UTC (rev 5414)
+++ trunk/data/qcsrc/server/cl_client.qc 2009-01-06 09:54:46 UTC (rev 5415)
@@ -49,9 +49,10 @@
// filter out spots for assault
if(spot.target != "") {
local entity ent;
- float good;
+ float good, found;
ent = find(world, targetname, spot.target);
while(ent) {
+ found = 1;
if(ent.classname == "target_objective")
{
if(ent.health < 0 || ent.health >= ASSAULT_VALUE_INACTIVE)
@@ -90,7 +91,7 @@
ent = find(ent, targetname, spot.target);
}
- if(!good)
+ if(found && !good)
return -1;
}
More information about the nexuiz-commits
mailing list