Skip to content

Commit

Permalink
Stops the Weight Bench from being deleted when select wheel is closed (
Browse files Browse the repository at this point in the history
…#12967)

* fix bench, return when no choice

* moved return up

* actually moves the !choice check
  • Loading branch information
JackTheJackhammer committed May 17, 2023
1 parent c036fb2 commit d7455e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/game/objects/structures/benchpress.dm
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
"5" = image(icon = 'icons/obj/structures/benchpress.dmi', icon_state = "benchpress_5"),
)
var/choice = show_radial_menu(user, src, radial_options, null, 64, null, TRUE, TRUE)
if(!choice)
return
plates = text2num(choice)
update_icon()
flick("swap_[plates]", src)
Expand Down

0 comments on commit d7455e4

Please sign in to comment.