Skip to content

Commit

Permalink
Bugfix: Flashlights now correct their icon when disabled by a xeno sl…
Browse files Browse the repository at this point in the history
…ash. (#4493)

# About the pull request

When slashed off, a flashlight would maintain it's 'on' sprite. Now it
updates correctly.

Fixes #4361

# Changelog

:cl: Casper
fix: fixed flashlights showing incorrect sprite state
/:cl:
  • Loading branch information
Crowbar764 authored Sep 27, 2023
1 parent 9665f5f commit c7c5190
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/game/objects/items/devices/flashlight.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c7c5190

Please sign in to comment.