Fixed tests, since "1 radius with world wrap" does not fit 1-radius map tests

This commit is contained in:
yairm210
2024-07-29 15:24:17 +03:00
parent fd850a8f69
commit 3e7bbce9fe
2 changed files with 2 additions and 2 deletions

View File

@ -7,9 +7,9 @@ import com.unciv.models.metadata.BaseRuleset
object MapShape {
const val rectangular = "Rectangular"
const val hexagonal = "Hexagonal"
const val flatEarth = "Flat Earth Hexagonal"
const val rectangular = "Rectangular"
}
object MapGeneratedMainType {

View File

@ -85,7 +85,7 @@ class TestGame {
* Removes all existing tiles. All new tiles have terrain [baseTerrain]
*/
fun makeHexagonalMap(newRadius: Int, baseTerrain: String = Constants.desert) {
val newTileMap = TileMap(newRadius, ruleset, tileMap.mapParameters.worldWrap)
val newTileMap = TileMap(newRadius, ruleset, false)
newTileMap.mapParameters.mapSize = MapSize(newRadius)
for (row in tileMap.tileMatrix)