fix mech runtime

This commit is contained in:
datlo
2019-01-04 19:02:39 +00:00
parent c39809beaf
commit 4ad51dcc59
+4 -2
View File
@@ -1378,14 +1378,16 @@
/obj/mecha/proc/use_power(amount)
if(get_charge())
cell.use(amount)
update_cell()
if(occupant)
update_cell()
return 1
return 0
/obj/mecha/proc/give_power(amount)
if(!isnull(get_charge()))
cell.give(amount)
update_cell()
if(occupant)
update_cell()
return 1
return 0