From 99e9d4910a4eb28cde118c0cc42eec750068b02d Mon Sep 17 00:00:00 2001 From: oy Date: Mon, 17 Jan 2011 15:55:23 +0100 Subject: fixed that team mates are regarded when evaluating the spawn position. Closes #426 --- src/game/server/gamecontroller.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/game/server/gamecontroller.cpp b/src/game/server/gamecontroller.cpp index 23a5e171..8ba69398 100644 --- a/src/game/server/gamecontroller.cpp +++ b/src/game/server/gamecontroller.cpp @@ -51,10 +51,7 @@ float IGameController::EvaluateSpawnPos(CSpawnEval *pEval, vec2 Pos) Scoremod = 0.5f; float d = distance(Pos, pC->m_Pos); - if(d == 0) - Score += 1000000000.0f; - else - Score += 1.0f/d; + Score += Scoremod * (d == 0 ? 1000000000.0f : 1.0f/d); } return Score; -- cgit 1.4.1