mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
VS: Fix serveral Destroy()s, VS edition
This commit is contained in:
@@ -4,3 +4,6 @@
|
||||
if(viewing_alternate_appearances && viewing_alternate_appearances.len)
|
||||
for(var/datum/alternate_appearance/AA in viewing_alternate_appearances)
|
||||
AA.display_to(list(src))
|
||||
|
||||
var/obj/screen/plane_master/augmented/aug = plane_holder.plane_masters[VIS_AUGMENTED]
|
||||
aug.apply()
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
plane_masters[VIS_CH_BACKUP] = new /obj/screen/plane_master{plane = PLANE_CH_BACKUP} //Backup implant status
|
||||
plane_masters[VIS_CH_VANTAG] = new /obj/screen/plane_master{plane = PLANE_CH_VANTAG} //Vore Antags
|
||||
|
||||
plane_masters[VIS_AUGMENTED] = new /obj/screen/plane_master/augmented(null,my_mob) //Augmented reality
|
||||
plane_masters[VIS_AUGMENTED] = new /obj/screen/plane_master/augmented(my_mob) //Augmented reality
|
||||
|
||||
/////////////////
|
||||
//AR planemaster does some special image handling
|
||||
@@ -14,13 +14,11 @@
|
||||
var/state = FALSE //Saves cost with the lists
|
||||
var/mob/my_mob
|
||||
|
||||
/obj/screen/plane_master/augmented/New(var/newloc, var/mob/M)
|
||||
..(newloc)
|
||||
/obj/screen/plane_master/augmented/New(var/mob/M)
|
||||
..()
|
||||
my_mob = M
|
||||
logged_in_event.register(my_mob,src,/obj/screen/plane_master/augmented/proc/apply)
|
||||
|
||||
/obj/screen/plane_master/augmented/Destroy()
|
||||
logged_in_event.unregister(my_mob,src)
|
||||
my_mob = null
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -13,6 +13,10 @@
|
||||
if((. = ..()))
|
||||
nif.comm = new(nif,src)
|
||||
|
||||
uninstall()
|
||||
if((. = ..()))
|
||||
qdel_null(nif.comm)
|
||||
|
||||
activate()
|
||||
if((. = ..()))
|
||||
nif.comm.initialize_exonet(nif.human)
|
||||
|
||||
Reference in New Issue
Block a user