From 12233ecdaf16236ee6b3a4d836d37560fe33297d Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 22 Sep 2010 01:07:11 +0200 Subject: fixed that ctf gametype doesn't work if the map has more than 1 flag per team. Closes #124 --- src/game/server/gamemodes/ctf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/gamemodes/ctf.cpp b/src/game/server/gamemodes/ctf.cpp index 0bbc9e85..2c348df2 100644 --- a/src/game/server/gamemodes/ctf.cpp +++ b/src/game/server/gamemodes/ctf.cpp @@ -23,7 +23,7 @@ bool CGameControllerCTF::OnEntity(int Index, vec2 Pos) int Team = -1; if(Index == ENTITY_FLAGSTAND_RED) Team = 0; if(Index == ENTITY_FLAGSTAND_BLUE) Team = 1; - if(Team == -1) + if(Team == -1 || m_apFlags[Team]) return false; CFlag *F = new CFlag(&GameServer()->m_World, Team); -- cgit 1.4.1