mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-02 05:23:01 +00:00
CLAMP Backwards Compatibility Fix
Fixes backwards compat with BYOND Stable versions below 513.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user