Make sure talk_wheel_icon var is properly deleted when hud is deleted.

Add a hotkey for the talk wheel: H (hotkey mode) and Ctrl+H.
Fixes not being able to use the wheel and talk button while stunned.
This commit is contained in:
phil235
2016-09-13 15:22:41 +02:00
parent e916f2aa3c
commit 37d1ea6108
3 changed files with 17 additions and 1 deletions
+11
View File
@@ -464,3 +464,14 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
M << "There were no ghosts willing to take control."
message_admins("No ghosts were willing to take control of [key_name_admin(M)])")
return FALSE
//toggles the talk wheel
/mob/verb/toggle_talk_wheel()
set name = "talk-wheel"
set hidden = 1
if(ishuman(src))
var/mob/living/carbon/human/H = src
if(H.hud_used && H.hud_used.talk_wheel_icon)
H.hud_used.talk_wheel_icon.Click()