Skip to content

Commit

Permalink
Fix copy_lighting checking the wrong icon state
Browse files Browse the repository at this point in the history
  • Loading branch information
out-of-phaze committed Feb 25, 2024
1 parent 92d6964 commit 5c8b0e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/multiz/zmimic/mimic_movable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
MA.blend_mode = BLEND_MULTIPLY

if (use_shadower_mult)
if (icon_state == LIGHTING_BASE_ICON_STATE)
if (MA.icon_state == LIGHTING_BASE_ICON_STATE)
// We're using a color matrix, so just darken the colors across the board.
var/list/c_list = color
c_list[CL_MATRIX_RR] *= SHADOWER_DARKENING_FACTOR
Expand All @@ -106,8 +106,8 @@
else
// Not a color matrix, so we can just use the color var ourselves.
MA.color = SHADOWER_DARKENING_COLOR
set_invisibility(INVISIBILITY_NONE)
appearance = MA
set_invisibility(INVISIBILITY_NONE)

if (our_overlays || priority_overlays)
compile_overlays()
Expand Down

0 comments on commit 5c8b0e2

Please sign in to comment.