[MIRROR] Add a type annotation to represent proc paths (#4799)

* Merge pull request #43029 from AutomaticFrenzy/patch/procpath

Add a type annotation to represent proc paths

* Add a type annotation to represent proc paths

* Update yogstation.dme
This commit is contained in:
yogstation13-bot
2019-03-20 01:45:11 +01:00
committed by monster860
parent 79533c702b
commit 95aef41edb
6 changed files with 31 additions and 5 deletions

View File

@@ -65,10 +65,10 @@ GLOBAL_LIST_EMPTY(menulist)
/datum/verbs/menu/Icon/Load_checked(client/C) //So we can be lazy, we invoke the "checked" menu item on menu load.
var/atom/verb/verbpath = Get_checked(C)
var/procpath/verbpath = Get_checked(C)
if (!verbpath || !(verbpath in typesof("[type]/verb")))
return
if (copytext(verbpath.name,1,2) == "@")
winset(C, null, list2params(list("command" = copytext(verbpath.name,2))))
else