mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 15:29:32 +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() {
|
fun startTurn() {
|
||||||
|
if (civInfo.isSpectator()) return
|
||||||
|
|
||||||
if (civInfo.isMajorCiv() && civInfo.isAlive()) {
|
if (civInfo.isMajorCiv() && civInfo.isAlive()) {
|
||||||
civInfo.statsHistory.recordRankingStats(civInfo)
|
civInfo.statsHistory.recordRankingStats(civInfo)
|
||||||
}
|
}
|
||||||
@ -211,6 +213,8 @@ class TurnManager(val civInfo: Civilization) {
|
|||||||
|
|
||||||
|
|
||||||
fun endTurn() {
|
fun endTurn() {
|
||||||
|
if (civInfo.isSpectator()) return
|
||||||
|
|
||||||
val notificationsLog = civInfo.notificationsLog
|
val notificationsLog = civInfo.notificationsLog
|
||||||
val notificationsThisTurn = Civilization.NotificationsLog(civInfo.gameInfo.turns)
|
val notificationsThisTurn = Civilization.NotificationsLog(civInfo.gameInfo.turns)
|
||||||
notificationsThisTurn.notifications.addAll(civInfo.notifications)
|
notificationsThisTurn.notifications.addAll(civInfo.notifications)
|
||||||
|
Reference in New Issue
Block a user