Explorar o código

Fix handling of map turn/day limit

Ivan Savenko %!s(int64=2) %!d(string=hai) anos
pai
achega
97ba7df152
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      server/CGameHandler.cpp

+ 3 - 0
server/CGameHandler.cpp

@@ -947,6 +947,9 @@ void CGameHandler::onNewTurn()
 		}
 	}
 
+	if (!firstTurn)
+		checkVictoryLossConditionsForAll(); // check for map turn limit
+
 	logGlobal->trace("Info about turn %d has been sent!", n.day);
 	handleTimeEvents();
 	//call objects