mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 13:18:56 +07:00
Fixed rectangular maps center point (#3646)
This commit is contained in:
@ -96,7 +96,10 @@ object HexMath {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun evenQ2HexCoords(evenQCoord: Vector2): Vector2 {
|
fun evenQ2HexCoords(evenQCoord: Vector2): Vector2 {
|
||||||
return cubic2HexCoords(evenQ2CubicCoords(evenQCoord))
|
return if (evenQCoord == Vector2.Zero)
|
||||||
|
Vector2.Zero
|
||||||
|
else
|
||||||
|
cubic2HexCoords(evenQ2CubicCoords(evenQCoord))
|
||||||
}
|
}
|
||||||
|
|
||||||
fun roundCubicCoords(cubicCoords: Vector3): Vector3 {
|
fun roundCubicCoords(cubicCoords: Vector3): Vector3 {
|
||||||
|
Reference in New Issue
Block a user