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
This commit is contained in:
baloh.matevz
2011-04-20 09:26:36 +00:00
parent 2f0ca2b40e
commit 1644364643
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -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)
+2
View File
@@ -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