mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 15:01:09 -04:00
Fix: ability to buy the same building multiple times (#1692)
This commit is contained in:
parent
525b67c7c6
commit
81258297d5
@ -251,6 +251,7 @@ class ConstructionsTable(val cityScreen: CityScreen) : Table(CameraStageBaseScre
|
||||
&& !city.isPuppet) {
|
||||
button.onClick {
|
||||
cityConstructions.addToQueue(construction.name)
|
||||
if (!construction.shouldBeDisplayed(cityConstructions)) cityScreen.selectedConstruction = null
|
||||
cityScreen.update()
|
||||
}
|
||||
} else {
|
||||
@ -286,6 +287,7 @@ class ConstructionsTable(val cityScreen: CityScreen) : Table(CameraStageBaseScre
|
||||
selectedQueueEntry = -2
|
||||
cityScreen.selectedConstruction = null
|
||||
}
|
||||
if (!construction.shouldBeDisplayed(cityConstructions)) cityScreen.selectedConstruction = null
|
||||
cityScreen.update()
|
||||
}, cityScreen)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user