Welp forgot I was on debug mode

I should probably add in a pre-commit check
This commit is contained in:
Yair Morgenstern 2020-04-14 15:17:40 +03:00
parent 9d24fc0ff5
commit 096eb7935a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)