mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-31 01:44:45 +07: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.
|
||||
// See #4085 for more details.
|
||||
val tilesExertingZoneOfControl = getTilesExertingZoneOfControl(unit, from)
|
||||
if (tilesExertingZoneOfControl.none { it.aerialDistanceTo(it) == 1 })
|
||||
if (tilesExertingZoneOfControl.none { to.aerialDistanceTo(it) == 1 })
|
||||
return false
|
||||
|
||||
// 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()
|
||||
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
|
||||
val civ = game.getCurrentPlayerCivilization()
|
||||
|
Loading…
Reference in New Issue
Block a user