From 18eea6886d9de7ebc3b85c568265391f1adbe38e Mon Sep 17 00:00:00 2001 From: savagex Date: Sat, 19 May 2007 18:03:01 +0000 Subject: [PATCH] spawnpoint filter for assault only kicks in for targets with classname == "target_objective". This should be safer as only target_objective is carrying the semantics the spawnpoint filter assumes. git-svn-id: svn://svn.icculus.org/nexuiz/trunk@2612 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 49f82a0e2..261de3792 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -33,8 +33,9 @@ entity Spawn_FilterOutBadSpots(entity firstspot, entity playerlist, float mindis local entity ent; ent = find(world, targetname, spot.target); while(ent) { - if(ent.health < 0 || ent.health >= ASSAULT_VALUE_INACTIVE) - spotactive = 0; + if(ent.classname == "target_objective") + if(ent.health < 0 || ent.health >= ASSAULT_VALUE_INACTIVE) + spotactive = 0; ent = find(ent, targetname, spot.target); } } -- 2.39.2