Fix bug in ZAS can_atmos_pass optimization.

Check the *atom's* density, not the turf's!
This commit is contained in:
Leshana
2020-04-30 19:25:57 -04:00
parent ce9a9cbed1
commit 2d0301c6e4

View File

@@ -101,7 +101,7 @@ turf/c_airblock(turf/other)
if(ATMOS_PASS_NO)
return BLOCKED
if(ATMOS_PASS_DENSITY)
if(density)
if(M.density)
return BLOCKED
if(ATMOS_PASS_PROC)
result |= M.c_airblock(other)