mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-31 09:09:49 +01:00
[MIRROR] Refactors do_after w/ TG's do_after (#11486)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
c1fffe13f3
commit
f85a202d80
@@ -176,7 +176,7 @@
|
||||
CRASH("item add_item_action got a type or instance of something that wasn't an action.")
|
||||
|
||||
LAZYADD(actions, action)
|
||||
RegisterSignal(action, COMSIG_PARENT_QDELETING, PROC_REF(on_action_deleted))
|
||||
RegisterSignal(action, COMSIG_QDELETING, PROC_REF(on_action_deleted))
|
||||
if(ismob(loc))
|
||||
// We're being held or are equipped by someone while adding an action?
|
||||
// Then they should also probably be granted the action, given it's in a correct slot
|
||||
@@ -190,7 +190,7 @@
|
||||
if(!action)
|
||||
return
|
||||
|
||||
UnregisterSignal(action, COMSIG_PARENT_QDELETING)
|
||||
UnregisterSignal(action, COMSIG_QDELETING)
|
||||
LAZYREMOVE(actions, action)
|
||||
qdel(action)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user