Sfoglia il codice sorgente

Fix handling of map turn/day limit

Ivan Savenko 2 anni fa
parent
commit
97ba7df152
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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