Skip to content

Commit

Permalink
Fix SMES not working after recharge (#26711)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dzianishchyts authored Sep 12, 2024
1 parent d8eb231 commit d01fca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/power/smes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
if(output_used < 0.0001) // Either from no charge or set to 0
outputting = FALSE
investigate_log("lost power and turned <font color='red'>off</font>", "singulo")
else if(output_attempt && charge > output_level && output_level > 0)
else if(output_attempt && charge > 0 && output_level > 0)
outputting = TRUE
else
output_used = 0
Expand Down

0 comments on commit d01fca6

Please sign in to comment.