mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 12:37:50 +01:00
Fix APCs making sounds at roundstart
This commit is contained in:
@@ -16,9 +16,6 @@
|
||||
|
||||
clicksound = "keyboard"
|
||||
|
||||
/obj/machinery/computer/New()
|
||||
..()
|
||||
|
||||
/obj/machinery/computer/Initialize()
|
||||
. = ..()
|
||||
power_change()
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user