mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-12 13:48:17 -04:00
Fix tests
This commit is contained in:
parent
1bf494a6f7
commit
d12c6c10e7
@ -152,7 +152,7 @@ object MovementCost {
|
|||||||
// function is surprisingly less efficient than the current neighbor-intersection approach.
|
// function is surprisingly less efficient than the current neighbor-intersection approach.
|
||||||
// See #4085 for more details.
|
// See #4085 for more details.
|
||||||
val tilesExertingZoneOfControl = getTilesExertingZoneOfControl(unit, from)
|
val tilesExertingZoneOfControl = getTilesExertingZoneOfControl(unit, from)
|
||||||
if (tilesExertingZoneOfControl.none { it.aerialDistanceTo(it) == 1 })
|
if (tilesExertingZoneOfControl.none { to.aerialDistanceTo(it) == 1 })
|
||||||
return false
|
return false
|
||||||
|
|
||||||
// Even though this is a very fast check, we perform it last. This is because very few units
|
// Even though this is a very fast check, we perform it last. This is because very few units
|
||||||
|
@ -67,7 +67,7 @@ class GameSerializationTests {
|
|||||||
|
|
||||||
UncivGame.Current.settings = GameSettings()
|
UncivGame.Current.settings = GameSettings()
|
||||||
game = GameStarter.startNewGame(setup)
|
game = GameStarter.startNewGame(setup)
|
||||||
UncivGame.Current.startSimulation(game)
|
UncivGame.Current.gameInfo = game
|
||||||
|
|
||||||
// Found a city otherwise too many classes have no instance and are not tested
|
// Found a city otherwise too many classes have no instance and are not tested
|
||||||
val civ = game.getCurrentPlayerCivilization()
|
val civ = game.getCurrentPlayerCivilization()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user