Skip to content

Commit

Permalink
Fixes a minor recurring runtime in origin selection (#4679)
Browse files Browse the repository at this point in the history
# About the pull request

Harry forgot to account for indecisive people

No user changes, just gets rid of a recurring runtime in live game logs
  • Loading branch information
fira authored Oct 15, 2023
1 parent cc7d60d commit 6ba14e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1701,6 +1701,8 @@ var/const/MAX_SAVE_SLOTS = 10
if("origin")
var/choice = tgui_input_list(user, "Please choose your character's origin.", "Origin Selection", GLOB.player_origins)
var/datum/origin/picked_choice = GLOB.origins[choice]
if(!picked_choice)
return
if(tgui_alert(user, "You've selected [picked_choice.name]. [picked_choice.desc]", "Selected Origin", list("Confirm", "Cancel")) == "Cancel")
return
if(choice)
Expand Down

0 comments on commit 6ba14e6

Please sign in to comment.