From 096eb7935abc6d90fc4d06b262d491008ae24f1b Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Tue, 14 Apr 2020 15:17:40 +0300 Subject: [PATCH] Welp forgot I was on debug mode I should probably add in a pre-commit check --- core/src/com/unciv/UncivGame.kt | 2 +- core/src/com/unciv/logic/automation/UnitAutomation.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/UncivGame.kt b/core/src/com/unciv/UncivGame.kt index 2997e27df2..a1833c9c09 100644 --- a/core/src/com/unciv/UncivGame.kt +++ b/core/src/com/unciv/UncivGame.kt @@ -38,7 +38,7 @@ class UncivGame( * This exists so that when debugging we can see the entire map. * Remember to turn this to false before commit and upload! */ - var viewEntireMapForDebug = true + var viewEntireMapForDebug = false /** For when you need to test something in an advanced game and don't have time to faff around */ val superchargedForDebug = false diff --git a/core/src/com/unciv/logic/automation/UnitAutomation.kt b/core/src/com/unciv/logic/automation/UnitAutomation.kt index 58a65fdb1c..1e3c20f214 100644 --- a/core/src/com/unciv/logic/automation/UnitAutomation.kt +++ b/core/src/com/unciv/logic/automation/UnitAutomation.kt @@ -291,7 +291,7 @@ object UnitAutomation { // move into position far away enough that the bombard doesn't hurt if (tileToMoveTo != null) unit.movement.headTowards(tileToMoveTo) - } else { + } else { // unit range <= 2 // calculate total damage of units in surrounding 4-spaces from enemy city (so we can attack a city from 2 directions at once) val militaryUnitsAroundEnemyCity = closestReachableEnemyCity.getTilesInDistance(3)