Fix issues with New and Destroy in NTNet

- New() on atoms needs to call parent.
- Destroy() needs to return a qdel hint.
- Only add yourself to processing in Initialize() to make sure globals are instantiated.
This commit is contained in:
Leshana
2020-02-11 19:06:59 -05:00
parent d0159d32f8
commit 42d25f823d
5 changed files with 6 additions and 5 deletions

View File

@@ -41,14 +41,14 @@
/obj/item/modular_computer/proc/install_default_programs()
return 1
/obj/item/modular_computer/New()
/obj/item/modular_computer/Initialize()
START_PROCESSING(SSobj, src)
install_default_hardware()
if(hard_drive)
install_default_programs()
update_icon()
update_verbs()
..()
. = ..()
/obj/item/modular_computer/Destroy()
kill_program(1)