mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
Remove 511 compatibility things
This commit is contained in:
@@ -56,11 +56,7 @@
|
||||
if(!force)
|
||||
_RemoveFromParent()
|
||||
if(!silent)
|
||||
#if DM_VERSION > 511
|
||||
#warn Remove the garbage bypass code below
|
||||
#endif
|
||||
var/Removein512 = SEND_SIGNAL(P, COMSIG_COMPONENT_REMOVING, src)
|
||||
KillMeIn512(Removein512)
|
||||
SEND_SIGNAL(P, COMSIG_COMPONENT_REMOVING, src)
|
||||
parent = null
|
||||
for(var/target in signal_procs)
|
||||
UnregisterSignal(target, signal_procs[target])
|
||||
@@ -262,11 +258,7 @@
|
||||
new_comp = new nt(arglist(args)) // Dupes are allowed, act like normal
|
||||
|
||||
if(!old_comp && !QDELETED(new_comp)) // Nothing related to duplicate components happened and the new component is healthy
|
||||
#if DM_VERSION > 511
|
||||
#warn Remove the garbage bypass code below
|
||||
#endif
|
||||
var/Removein512 = SEND_SIGNAL(src, COMSIG_COMPONENT_ADDED, new_comp)
|
||||
KillMeIn512(Removein512)
|
||||
SEND_SIGNAL(src, COMSIG_COMPONENT_ADDED, new_comp)
|
||||
return new_comp
|
||||
return old_comp
|
||||
|
||||
@@ -286,11 +278,7 @@
|
||||
qdel(C)
|
||||
return
|
||||
C._RemoveFromParent()
|
||||
#if DM_VERSION > 511
|
||||
#warn Remove the garbage bypass code below
|
||||
#endif
|
||||
var/Removein512 = SEND_SIGNAL(helicopter, COMSIG_COMPONENT_REMOVING, C)
|
||||
KillMeIn512(Removein512)
|
||||
SEND_SIGNAL(helicopter, COMSIG_COMPONENT_REMOVING, C)
|
||||
C.parent = src
|
||||
if(C == AddComponent(C))
|
||||
C._JoinParent()
|
||||
|
||||
Reference in New Issue
Block a user