From: Rudolf Polzer Date: Tue, 6 Dec 2011 21:13:26 +0000 (+0100) Subject: try a small fix in spawn distance check logic (untested) X-Git-Tag: xonotic-v0.6.0~35^2~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b8073f13a269dc4929f1fdb12b2dbf2c391cc893;p=xonotic%2Fxonotic-data.pk3dir.git try a small fix in spawn distance check logic (untested) --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index c21fc7871..1a6c9124b 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -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';