Fixes some circuit bugs.

This commit is contained in:
Neerti
2019-01-27 00:47:37 -05:00
committed by VirgoBot
parent 30ab44613d
commit 81101d30da
5 changed files with 59 additions and 84 deletions

View File

@@ -339,7 +339,7 @@
if(battery)
var/lost = battery.use(amount * CELLRATE)
net_power -= lost
return TRUE
return lost > 0
return FALSE
// Ditto for giving.