mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Renamed Clamp() to clamp()
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user