mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 15:01:09 -04:00
Resolved #8996 - Spectator startTurn and endTurn do nothing
This commit is contained in:
parent
cb25e32762
commit
27279a7361
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user