Ports new zmimic changes/bugfixes/etc from Bay/Nebula. (#14495)

This commit is contained in:
Matt Atlas
2022-08-02 17:56:01 +02:00
committed by GitHub
parent 06e5c811ac
commit af79eebb88
22 changed files with 625 additions and 302 deletions
@@ -122,14 +122,6 @@
0, 0, 0, 1
)
// If we're on an openturf, update the shadower object too.
if (T.above)
var/turf/simulated/open/OT = T.above
if (OT.shadower)
OT.shadower.copy_lighting(src)
else
OT.update_icon()
#undef ALL_EQUAL
// Variety of overrides so the overlays don't get affected by weird things.
+1 -1
View File
@@ -394,7 +394,7 @@
// Note: above is defined on ALL turfs, but below is only defined on OPEN TURFS.
// Upwards lights are handled at the corner level, so only search down.
if (T && (T.flags & MIMIC_BELOW) && T.below)
if (T && (T.z_flags & ZM_MIMIC_BELOW) && T.below)
T = T.below
goto check_t
@@ -99,7 +99,7 @@
CHECK_TICK
// Sunlight only checks downwards as it has no need to shine upwards, really.
if (T && (T.flags & MIMIC_BELOW) && T.below)
if (T && (T.z_flags & ZM_MIMIC_BELOW) && T.below)
T = T.below
goto check_t