mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +07:00
Resolved #8996 - Spectator startTurn and endTurn do nothing
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user