From 16443646437c2aea2f9da07b8f73f271d1fa5a0a Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Wed, 20 Apr 2011 09:26:36 +0000 Subject: [PATCH] Newly created computers and vending machines in unpowered areas will now start as unpowered. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1476 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/machinery/computer/computer.dm | 4 ++++ code/game/machinery/vending.dm | 2 ++ 2 files changed, 6 insertions(+) diff --git a/code/game/machinery/computer/computer.dm b/code/game/machinery/computer/computer.dm index a8257643133..1352e3feea2 100644 --- a/code/game/machinery/computer/computer.dm +++ b/code/game/machinery/computer/computer.dm @@ -6,6 +6,10 @@ ID Computer Pod/Blast Doors computer */ +/obj/machinery/computer/New() + ..() + spawn(2) + power_change() /obj/machinery/computer/meteorhit(var/obj/O as obj) for(var/x in src.verbs) diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index 1ee589a8655..2090a3917f0 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -22,11 +22,13 @@ //Little sanity check here if ((isnull(temp_paths)) || (isnull(temp_amounts)) || (temp_paths.len != temp_amounts.len) || (temp_hidden.len != temp_hideamt.len)) stat |= BROKEN + power_change() return src.build_inventory(temp_paths,temp_amounts) //Add hidden inventory src.build_inventory(temp_hidden,temp_hideamt, 1) + power_change() return return