From 3675202c35725d68e47232abab51d2aab6e03e0f Mon Sep 17 00:00:00 2001 From: div0 Date: Tue, 6 Jan 2009 09:54:46 +0000 Subject: [PATCH] fix "loof" :P git-svn-id: svn://svn.icculus.org/nexuiz/trunk@5415 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/cl_client.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 88a14cded..d3a235e90 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -49,9 +49,10 @@ float Spawn_Score(entity spot, entity playerlist, float teamcheck) // 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 @@ float Spawn_Score(entity spot, entity playerlist, float teamcheck) ent = find(ent, targetname, spot.target); } - if(!good) + if(found && !good) return -1; } -- 2.39.2