Skip to content

Commit

Permalink
Merge pull request #1333 from Yawn-Wider/areajumpfix
Browse files Browse the repository at this point in the history
Make area jump work even if not specifying a area name
  • Loading branch information
izac112 authored Dec 8, 2023
2 parents 800d0c1 + 04861dc commit b47955d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/admin/verbs/adminjump.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
if(areaname)
A = return_sorted_areas()[areaname]
else
A = tgui_input_list(usr, "Pick an area:", "Jump to Area", return_sorted_areas())
var/newareaname = tgui_input_list(usr, "Pick an area:", "Jump to Area", return_sorted_areas())
A = return_sorted_areas()[newareaname] // YW EDIT - tgui_input_list returns strings even if var is area... Get area from name with this

if(!A)
return
Expand Down

0 comments on commit b47955d

Please sign in to comment.