From c7c51902f4336890da48790e278fc98494a406e4 Mon Sep 17 00:00:00 2001 From: Crowbar764 <59719612+Crowbar764@users.noreply.github.com> Date: Wed, 27 Sep 2023 22:23:50 +0100 Subject: [PATCH] Bugfix: Flashlights now correct their icon when disabled by a xeno slash. (#4493) # About the pull request When slashed off, a flashlight would maintain it's 'on' sprite. Now it updates correctly. Fixes https://github.com/cmss13-devs/cmss13/issues/4361 # Changelog :cl: Casper fix: fixed flashlights showing incorrect sprite state /:cl: --- code/game/objects/items/devices/flashlight.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm index 6795f8b436dc..e795f4e28de4 100644 --- a/code/game/objects/items/devices/flashlight.dm +++ b/code/game/objects/items/devices/flashlight.dm @@ -65,6 +65,7 @@ if(on) on = FALSE set_light_on(on) + update_icon() for(var/X in actions) var/datum/action/A = X A.update_button_icon()