mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 22:06:05 -04:00
Fix civilopedia not showing any victory type entries when opening it without any game open (#7194)
This commit is contained in:
parent
7481e5aa13
commit
488f12be9c
@ -185,7 +185,7 @@ class CivilopediaScreen(
|
|||||||
|
|
||||||
val curGameInfo = game.gameInfo
|
val curGameInfo = game.gameInfo
|
||||||
val religionEnabled = if (curGameInfo != null) curGameInfo.isReligionEnabled() else ruleset.beliefs.isNotEmpty()
|
val religionEnabled = if (curGameInfo != null) curGameInfo.isReligionEnabled() else ruleset.beliefs.isNotEmpty()
|
||||||
val victoryTypes = if (curGameInfo != null) curGameInfo.gameParameters.victoryTypes else emptyList()
|
val victoryTypes = if (curGameInfo != null) curGameInfo.gameParameters.victoryTypes else ruleset.victories.keys
|
||||||
|
|
||||||
fun shouldBeDisplayed(obj: IHasUniques): Boolean {
|
fun shouldBeDisplayed(obj: IHasUniques): Boolean {
|
||||||
return when {
|
return when {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user