Skip to content

Commit

Permalink
Fixes repaired vendor icons not updating (#5024)
Browse files Browse the repository at this point in the history
# About the pull request

Fixes #5016 

# Explain why it's good for the game
# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
fix: Fixes vendor sprites not updating icon when fully repaired
/🆑
  • Loading branch information
Birdtalon authored Nov 26, 2023
1 parent c97529a commit 7ddb7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/machinery/vending/cm_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ IN_USE used for vending/denying
if(stat & NOPOWER || stat & TIPPED_OVER) //tipping off without breaking uses "_off" sprite
overlays += image(icon, "[icon_state]_off")
if(stat & MAINT) //if we require maintenance, then it is completely "_broken"
icon_state = "[initial(icon_state)]_broken"
overlays += image(icon, "[initial(icon_state)]_broken")
if(stat & IN_REPAIR) //if someone started repairs, they unscrewed "_panel"
overlays += image(icon, "[icon_state]_panel")

Expand Down

0 comments on commit 7ddb7e8

Please sign in to comment.