about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/server/gamecontroller.cpp5
1 files changed, 1 insertions, 4 deletions
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;