From 372f05aaffac0ba1fc8037f4f3d31d2491b4fb26 Mon Sep 17 00:00:00 2001 From: Afforess Date: Tue, 29 Mar 2016 20:27:17 -0400 Subject: [PATCH] Remove leftover debug code --- Makefile | 2 +- libs/map.lua | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 6163534..184ffad 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PACKAGE_NAME := Misanthrope -VERSION_STRING := 0.3.1 +VERSION_STRING := 0.3.2 OUTPUT_NAME := $(PACKAGE_NAME)_$(VERSION_STRING) OUTPUT_DIR := build/$(OUTPUT_NAME) diff --git a/libs/map.lua b/libs/map.lua index 66563dc..b26dd07 100644 --- a/libs/map.lua +++ b/libs/map.lua @@ -72,15 +72,6 @@ function Map.new() global.attack_plans[key] = nil end end - - if not global.foo then - for _, region in pairs(global.regions) do - if region.danger_cache and not region.danger_cache.all_zeros then - danger_cache.calculate(region.danger_cache) - end - end - global.foo = true - end end function Map:update_region_ai(region_data)