Skip to content

Commit

Permalink
Merge pull request #3683 from out-of-phaze/fix/zm-shadower-corruption
Browse files Browse the repository at this point in the history
Fix 2.5ph ZMimic shadower corruption
  • Loading branch information
MistakeNot4892 authored Feb 14, 2024
2 parents 0f88fe7 + f382842 commit dfdc8f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/__defines/zmimic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ var/global/list/mimic_defines = list(
"ZM_ALLOW_ATMOS",
"ZM_MIMIC_NO_AO",
"ZM_NO_OCCLUDE",
"ZM_MIMIC_BASETURF"
"ZM_OVERRIDE",
"ZM_NO_SHADOW",
"ZM_TERMINATOR"
)

// Movable flags.
Expand Down
1 change: 1 addition & 0 deletions code/controllers/subsystems/zcopy.dm
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ SUBSYSTEM_DEF(zcopy)
// Special case: these are merged into the shadower to reduce memory usage.
if (object.type == /atom/movable/lighting_overlay)
T.shadower.copy_lighting(object, !(T.below.z_flags & ZM_NO_SHADOW))
shadower_set = TRUE
continue

// If an atom already has an overlay, we probably don't need to discover it again.
Expand Down

0 comments on commit dfdc8f0

Please sign in to comment.