mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 07:21:34 -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() {
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user