mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-20 19:56:51 +01:00
Fixed can't press nextTurn in multiplayer game (#3748)
* Fixed game crashes on create multiplayer game * Update isPlayersTurn on update()
This commit is contained in:
parent
cb50732ec4
commit
5d6bfbfb31
|
|
@ -148,7 +148,7 @@ class NewGameScreen(previousScreen:CameraStageBaseScreen, _gameSetupInfo: GameSe
|
|||
// Save gameId to clipboard because you have to do it anyway.
|
||||
Gdx.app.clipboard.contents = newGame!!.gameId
|
||||
// Popup to notify the User that the gameID got copied to the clipboard
|
||||
Gdx.app.postRunnable { ToastPopup("gameID copied to clipboard".tr(), UncivGame.Current.worldScreen, 2500) }
|
||||
Gdx.app.postRunnable { ToastPopup("gameID copied to clipboard".tr(), game.worldScreen, 2500) }
|
||||
|
||||
GameSaver.autoSave(newGame!!) {}
|
||||
|
||||
|
|
|
|||
|
|
@ -312,6 +312,7 @@ class WorldScreen(val gameInfo: GameInfo, val viewingCiv:CivilizationInfo) : Cam
|
|||
techPolicyAndVictoryHolder.setPosition(10f, topBar.y - techPolicyAndVictoryHolder.height - 5f)
|
||||
updateDiplomacyButton(viewingCiv)
|
||||
|
||||
isPlayersTurn = viewingCiv == gameInfo.currentPlayerCiv
|
||||
|
||||
if (!hasOpenPopups() && isPlayersTurn) {
|
||||
when {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user