mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Facism -> Fascism policy name change in existing save files
This commit is contained in:
parent
cdcd7cf116
commit
9725c0f66c
@ -224,6 +224,12 @@ class GameInfo {
|
|||||||
// which in turn leads to us trying to get info on all the building in all the cities...
|
// which in turn leads to us trying to get info on all the building in all the cities...
|
||||||
// which can fail if there's an "unregistered" building anywhere
|
// which can fail if there's an "unregistered" building anywhere
|
||||||
for (civInfo in civilizations) {
|
for (civInfo in civilizations) {
|
||||||
|
// As of 3.5.
|
||||||
|
if(civInfo.policies.adoptedPolicies.contains("Facism")){
|
||||||
|
civInfo.policies.adoptedPolicies.remove("Facism")
|
||||||
|
civInfo.policies.adoptedPolicies.add("Fascism")
|
||||||
|
}
|
||||||
|
|
||||||
for (cityInfo in civInfo.cities) {
|
for (cityInfo in civInfo.cities) {
|
||||||
val cityConstructions = cityInfo.cityConstructions
|
val cityConstructions = cityInfo.cityConstructions
|
||||||
|
|
||||||
|
@ -24,15 +24,14 @@ open class CameraStageBaseScreen : Screen {
|
|||||||
init {
|
init {
|
||||||
val width:Float
|
val width:Float
|
||||||
val height:Float
|
val height:Float
|
||||||
if(game.settings.resolution=="Auto"){
|
if(game.settings.resolution=="Auto") {
|
||||||
// lower than 750x500 just doesn't manage to fit all the components into the screen
|
// lower than 750x500 just doesn't manage to fit all the components into the screen
|
||||||
if(Gdx.graphics.width >= 750 && Gdx.graphics.height.toFloat() >= 500){
|
if (Gdx.graphics.width >= 750 && Gdx.graphics.height.toFloat() >= 500) {
|
||||||
width=Gdx.graphics.width.toFloat()
|
width = Gdx.graphics.width.toFloat()
|
||||||
height=Gdx.graphics.height.toFloat()
|
height = Gdx.graphics.height.toFloat()
|
||||||
}
|
} else {
|
||||||
else{
|
width = 750f
|
||||||
width=750f
|
height = 500f
|
||||||
height=500f
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user