Replaces all instances of spawn() with addtimer/INVOKE_ASYNC

This commit is contained in:
CitadelStationBot
2017-07-06 09:14:03 -05:00
parent b1b4826c0c
commit beccb4742f
12 changed files with 272 additions and 232 deletions
+6 -5
View File
@@ -81,15 +81,16 @@ Notes:
/datum/tooltip/proc/hide()
if (src.queueHide)
spawn(1)
winshow(src.owner, src.control, 0)
addtimer(CALLBACK(src, .proc/do_hide), 1)
else
winshow(src.owner, src.control, 0)
do_hide()
src.queueHide = src.showing ? 1 : 0
queueHide = showing ? TRUE : FALSE
return 1
return TRUE
/datum/tooltip/proc/do_hide()
winshow(owner, control, FALSE)
/* TG SPECIFIC CODE */