Merge pull request #7668 from Rykka-Stormheart/shep-dev-clamp-fix

Fix clamp case breaking BYOND versions below 513.1490
This commit is contained in:
Aronai Sieyes
2020-05-06 09:19:52 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -154,7 +154,7 @@
//inputting
if(input_attempt && (!input_pulsed && !input_cut) && !grid_check)
target_load = clamp((capacity-charge)/SMESRATE, 0, input_level) // Amount we will request from the powernet.
target_load = CLAMP((capacity-charge)/SMESRATE, 0, input_level) // Amount we will request from the powernet.
var/input_available = FALSE
for(var/obj/machinery/power/terminal/term in terminals)
if(!term.powernet)