From 0e021eceea500eed2f3ed2ce89271b2b08c0d29b Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 28 Jul 2021 23:04:32 +0200 Subject: [PATCH] [MIRROR] Fix APC power usage (#7161) * Fix APC power usage * Update apc.dm Co-authored-by: Jordan Brown Co-authored-by: Gandalf --- code/modules/power/apc.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm index 24152016851..51eb1c8564b 100644 --- a/code/modules/power/apc.dm +++ b/code/modules/power/apc.dm @@ -1299,7 +1299,7 @@ if(cell && !shorted) // draw power from cell as before to power the area - var/cellused = min(cell.charge, lastused_total) // clamp deduction to a max, amount left in cell + var/cellused = min(cell.charge, lastused_total JOULES) // clamp deduction to a max, amount left in cell cell.use(cellused) if(excess > lastused_total) // if power excess recharge the cell