Преглед изворни кода

Fix handling of map turn/day limit

Ivan Savenko пре 2 година
родитељ
комит
97ba7df152
1 измењених фајлова са 3 додато и 0 уклоњено
  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);
 	logGlobal->trace("Info about turn %d has been sent!", n.day);
 	handleTimeEvents();
 	handleTimeEvents();
 	//call objects
 	//call objects