Resolved #8996 - Spectator startTurn and endTurn do nothing

This commit is contained in:
Yair Morgenstern
2023-03-23 21:19:07 +02:00
parent cb25e32762
commit 27279a7361

View File

@ -26,6 +26,8 @@ class TurnManager(val civInfo: Civilization) {
fun startTurn() {
if (civInfo.isSpectator()) return
if (civInfo.isMajorCiv() && civInfo.isAlive()) {
civInfo.statsHistory.recordRankingStats(civInfo)
}
@ -211,6 +213,8 @@ class TurnManager(val civInfo: Civilization) {
fun endTurn() {
if (civInfo.isSpectator()) return
val notificationsLog = civInfo.notificationsLog
val notificationsThisTurn = Civilization.NotificationsLog(civInfo.gameInfo.turns)
notificationsThisTurn.notifications.addAll(civInfo.notifications)