mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-02 04:14:15 +07:00
parent
860d9425ce
commit
2a74be3be2
@ -3,8 +3,8 @@ package com.unciv.build
|
||||
object BuildConfig {
|
||||
const val kotlinVersion = "1.8.0"
|
||||
const val appName = "Unciv"
|
||||
const val appCodeNumber = 830
|
||||
const val appVersion = "4.5.7"
|
||||
const val appCodeNumber = 831
|
||||
const val appVersion = "4.5.7-patch1"
|
||||
|
||||
const val gdxVersion = "1.11.0"
|
||||
const val roboVMVersion = "2.3.1"
|
||||
|
@ -529,7 +529,7 @@ open class UncivGame(val isConsoleMode: Boolean = false) : Game(), PlatformSpeci
|
||||
|
||||
companion object {
|
||||
//region AUTOMATICALLY GENERATED VERSION DATA - DO NOT CHANGE THIS REGION, INCLUDING THIS COMMENT
|
||||
val VERSION = Version("4.5.7", 830)
|
||||
val VERSION = Version("4.5.7-patch1", 831)
|
||||
//endregion
|
||||
|
||||
lateinit var Current: UncivGame
|
||||
|
@ -1,13 +1,13 @@
|
||||
package com.unciv.ui.screens.worldscreen.minimap
|
||||
|
||||
import com.badlogic.gdx.math.Rectangle
|
||||
import com.badlogic.gdx.scenes.scene2d.Group
|
||||
import java.awt.geom.Rectangle2D
|
||||
import kotlin.math.max
|
||||
import kotlin.math.min
|
||||
|
||||
object MinimapTileUtil {
|
||||
|
||||
fun spreadOutMinimapTiles(tileLayer: Group, tiles: List<MinimapTile>, tileSize: Float) : Rectangle2D.Float {
|
||||
fun spreadOutMinimapTiles(tileLayer: Group, tiles: List<MinimapTile>, tileSize: Float) : Rectangle {
|
||||
var topX = -Float.MAX_VALUE
|
||||
var topY = -Float.MAX_VALUE
|
||||
var bottomX = Float.MAX_VALUE
|
||||
@ -23,6 +23,6 @@ object MinimapTileUtil {
|
||||
bottomY = min(bottomY, image.y)
|
||||
}
|
||||
|
||||
return Rectangle2D.Float(bottomX, bottomY, topX-bottomX, topY-bottomY)
|
||||
return Rectangle(bottomX, bottomY, topX-bottomX, topY-bottomY)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user