Fixes a few runtimes

This commit is contained in:
Tastyfish
2016-05-23 19:23:18 -04:00
parent 87c13977af
commit 7efe0beb94
9 changed files with 28 additions and 21 deletions
+4 -1
View File
@@ -221,7 +221,10 @@ Any-Mode: (hotkey doesn't need to be on)
set name = "Set Hotkey Mode"
set category = "Preferences"
hotkeytype = input("Choose hotkey mode", "Hotkey mode") as null|anything in hotkeylist//ask the user for the hotkey type
var/hkt = input("Choose hotkey mode", "Hotkey mode") as null|anything in hotkeylist//ask the user for the hotkey type
if(!hkt)
return
hotkeytype = hkt
var/hotkeys = hotkeylist[hotkeytype]//get the list containing the hotkey names
var/hotkeyname = hotkeys[hotkeyon ? "on" : "off"]//get the name of the hotkey, to not clutter winset() to much