1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

fixed chunk pass scan not returng impassable chunk when needed

This commit is contained in:
Aaron Veden 2021-12-04 12:56:02 -08:00
parent 68de29c6d2
commit 2772010851
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 5 additions and 0 deletions

View File

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

View File

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