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:
parent
68de29c6d2
commit
2772010851
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user