mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Fixed bug where setting the max. amount of AI players meant that there was no human player, so people got a fully-fogged out map
This commit is contained in:
parent
42ca98efd2
commit
0fcc3a6807
@ -131,7 +131,7 @@ class NewGameScreen: PickerScreen(){
|
|||||||
newGameOptionsTable.add("{Number of enemies}:".tr())
|
newGameOptionsTable.add("{Number of enemies}:".tr())
|
||||||
val enemiesSelectBox = SelectBox<Int>(skin)
|
val enemiesSelectBox = SelectBox<Int>(skin)
|
||||||
val enemiesArray = Array<Int>()
|
val enemiesArray = Array<Int>()
|
||||||
(0..GameBasics.Nations.size).forEach { enemiesArray.add(it) }
|
(0..GameBasics.Nations.size-1).forEach { enemiesArray.add(it) }
|
||||||
enemiesSelectBox.items = enemiesArray
|
enemiesSelectBox.items = enemiesArray
|
||||||
enemiesSelectBox.selected = newGameParameters.numberOfEnemies
|
enemiesSelectBox.selected = newGameParameters.numberOfEnemies
|
||||||
newGameOptionsTable.add(enemiesSelectBox).pad(10f).row()
|
newGameOptionsTable.add(enemiesSelectBox).pad(10f).row()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user