From 2772010851cdb71ed65696ec72889538ea7545b5 Mon Sep 17 00:00:00 2001 From: Aaron Veden Date: Sat, 4 Dec 2021 12:56:02 -0800 Subject: [PATCH] fixed chunk pass scan not returng impassable chunk when needed --- changelog.txt | 1 + libs/ChunkUtils.lua | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/changelog.txt b/changelog.txt index 05b1a41..a337340 100644 --- a/changelog.txt +++ b/changelog.txt @@ -40,6 +40,7 @@ Date: 23. 11. 2021 - Corrected spelling of wonder command to wander command - Fixed enemy structures destroyed by the enemy were not being unregistered from Rampants map - Fixed regional bases would not be corrected distributed or cleaned up on spawners + - Fixed chunks that became impassable would not return an impassable chunk flag when pass scanned Framework: - Fixed Rampant in-memory map visualization tool for debugging - Added debug mod settings for showing enemy structures being upgraded in place diff --git a/libs/ChunkUtils.lua b/libs/ChunkUtils.lua index 0c7c14e..9a394c6 100644 --- a/libs/ChunkUtils.lua +++ b/libs/ChunkUtils.lua @@ -295,6 +295,10 @@ function chunkUtils.chunkPassScan(chunk, map) setPassable(map, chunk, pass) setPathRating(map, chunk, waterTiles + neutralObjects) + if pass == CHUNK_IMPASSABLE then + return -1 + end + return chunk end