]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
try a small fix in spawn distance check logic (untested)
authorRudolf Polzer <divverent@alientrap.org>
Tue, 6 Dec 2011 21:13:26 +0000 (22:13 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 6 Dec 2011 21:14:00 +0000 (22:14 +0100)
qcsrc/server/cl_client.qc

index c21fc78719d81260e7b01d99391f7ef1ea64b806..1a6c9124b8d4f0df84772a80dfe64772a0800c63 100644 (file)
@@ -158,7 +158,7 @@ vector Spawn_Score(entity spot, float mindist, float teamcheck)
                if (thisdist < shortest)
                        shortest = thisdist;
        }
-       if(shortest < mindist)
+       if(shortest > mindist)
                prio += SPAWN_PRIO_GOOD_DISTANCE;
 
        spawn_score = prio * '1 0 0' + shortest * '0 1 0';