Renamed Clamp() to clamp()

This commit is contained in:
Exxion
2019-10-25 17:18:20 -04:00
parent 3b89a11cb2
commit 4d7a2df990
140 changed files with 316 additions and 314 deletions

View File

@@ -158,7 +158,7 @@ atom/movable/GotoAirflowDest(n)
xo *= -1
yo *= -1
airflow_speed = Clamp(n * (9 / airflow_falloff), 1, 9)
airflow_speed = clamp(n * (9 / airflow_falloff), 1, 9)
airflow_dest = null
@@ -188,7 +188,7 @@ atom/movable/GotoAirflowDest(n)
if(od)
setDensity(TRUE)
if ((!( src.airflow_dest ) || src.loc == src.airflow_dest))
airflow_dest = locate(Clamp(x + xo, 1, world.maxx), Clamp(y + yo, 1, world.maxy), z)
airflow_dest = locate(clamp(x + xo, 1, world.maxx), clamp(y + yo, 1, world.maxy), z)
if ((src.x == 1 || src.x == world.maxx || src.y == 1 || src.y == world.maxy))
break
if(!isturf(loc))

View File

@@ -307,7 +307,7 @@ datum/gas_mixture/proc/zburn(var/turf/T, force_burn)
var/total_reactants = total_fuel + total_oxygen
//determine the amount of reactants actually reacting
var/used_reactants_ratio = Clamp(firelevel / zas_settings.Get(/datum/ZAS_Setting/fire_firelevel_multiplier), Clamp(0.2 / total_reactants, 0, 1), 1)
var/used_reactants_ratio = clamp(firelevel / zas_settings.Get(/datum/ZAS_Setting/fire_firelevel_multiplier), clamp(0.2 / total_reactants, 0, 1), 1)
//remove and add gasses as calculated
adjust_multi(