Skip to content

Commit

Permalink
Vendor icon_state fix (#3954)
Browse files Browse the repository at this point in the history
# About the pull request

I don't know how no one noticed that but some of the vendors were stuck
at "_vend" icon_state after first vending. Now it works as intended
(hopefully).

# Explain why it's good for the game

Bug bad


# 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: ihatethisengine
fix: vendors icon_state resets after vending as intended.
/:cl:
  • Loading branch information
ihatethisengine authored Jul 22, 2023
1 parent 6755db1 commit 5d34ae6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/game/machinery/vending/cm_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,7 @@ GLOBAL_LIST_INIT(cm_vending_gear_corresponding_types_list, list(
sleep(15)

vendor.stat &= ~IN_USE
vendor.icon_state = initial(vendor.icon_state)
vendor.update_icon()

/proc/vendor_successful_vend_one(obj/structure/machinery/cm_vending/vendor, prod_type, mob/living/carbon/human/user, turf/target_turf, insignas_override)
Expand Down

0 comments on commit 5d34ae6

Please sign in to comment.