Minor refactors (#26305)

obj/on_log changed to atom/on_log. Boolean parameter in
No admin irc message now checked in client/Del instead of mob/Logout
Removed an empty New()
1 -> TRUE
removed a potential crash in mob/Login
This commit is contained in:
Cyberboss
2017-04-23 09:52:47 +12:00
committed by oranges
parent ae8b22c49e
commit b9c54f517f
8 changed files with 34 additions and 47 deletions
-8
View File
@@ -165,14 +165,6 @@
/obj/proc/hide(h)
return
//If a mob logouts/logins in side of an object you can use this proc
/obj/proc/on_log()
..()
if(isobj(loc))
var/obj/Loc=loc
Loc.on_log()
/obj/singularity_pull(S, current_size)
if(!anchored || current_size >= STAGE_FIVE)
step_towards(src,S)
+2 -4
View File
@@ -24,9 +24,6 @@
var/locked = 0
var/opendir = SOUTH
/obj/structure/bodycontainer/New()
..()
/obj/structure/bodycontainer/Destroy()
open()
if(connected)
@@ -34,7 +31,8 @@
connected = null
return ..()
/obj/structure/bodycontainer/on_log()
/obj/structure/bodycontainer/on_log(login)
..()
update_icon()
/obj/structure/bodycontainer/update_icon()