Fix APCs making sounds at roundstart

This commit is contained in:
Aronai Sieyes
2021-05-31 19:14:05 -04:00
parent 5ac6bd48d9
commit cef7b4e4d2
2 changed files with 11 additions and 9 deletions
-3
View File
@@ -16,9 +16,6 @@
clicksound = "keyboard"
/obj/machinery/computer/New()
..()
/obj/machinery/computer/Initialize()
. = ..()
power_change()
+11 -6
View File
@@ -189,9 +189,7 @@ GLOBAL_LIST_EMPTY(apcs)
pixel_x = (dir & 3)? 0 : (dir == 4 ? 26 : -26) //VOREStation Edit -> 24 to 26
pixel_y = (dir & 3)? (dir ==1 ? 26 : -26) : 0 //VOREStation Edit -> 24 to 26
if(building==0)
init()
else
if(building)
area = get_area(src)
area.apc = src
opened = 1
@@ -200,6 +198,16 @@ GLOBAL_LIST_EMPTY(apcs)
stat |= MAINT
update_icon()
/obj/machinery/power/apc/Initialize(mapload, ndir, building)
. = ..()
if(!building)
init()
return INITIALIZE_HINT_LATELOAD
/obj/machinery/power/apc/LateInitialize()
. = ..()
update()
/obj/machinery/power/apc/Destroy()
GLOB.apcs -= src
update()
@@ -268,9 +276,6 @@ GLOBAL_LIST_EMPTY(apcs)
make_terminal()
spawn(5)
update()
/obj/machinery/power/apc/examine(mob/user)
. = ..()
if(Adjacent(user))