mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-14 20:22:42 +00:00
removed CLAMP define
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
var/obj/item/weapon/tank/rigtank = owner_rig.air_supply
|
||||
|
||||
var/charge_percentage = rigcell ? rigcell.charge / rigcell.maxcharge : 0
|
||||
var/air_percentage = rigtank ? CLAMP(rigtank.air_contents.total_moles / 17.4693, 0, 1) : 0
|
||||
var/air_percentage = rigtank ? clamp(rigtank.air_contents.total_moles / 17.4693, 0, 1) : 0
|
||||
var/air_on = owner_rig.wearer?.internal ? 1 : 0
|
||||
|
||||
power.icon_state = "pwr[round(charge_percentage / 0.2, 1)]"
|
||||
@@ -91,7 +91,7 @@
|
||||
var/obj/machinery/portable_atmospherics/canister/mechtank = owner_mech.internal_tank
|
||||
|
||||
var/charge_percentage = mechcell ? mechcell.charge / mechcell.maxcharge : 0
|
||||
var/air_percentage = mechtank ? CLAMP(mechtank.air_contents.total_moles / 1863.47, 0, 1) : 0
|
||||
var/air_percentage = mechtank ? clamp(mechtank.air_contents.total_moles / 1863.47, 0, 1) : 0
|
||||
var/health_percentage = owner_mech.health / owner_mech.maxhealth
|
||||
var/air_on = owner_mech.use_internal_tank
|
||||
|
||||
|
||||
@@ -132,8 +132,8 @@
|
||||
overlays += dir
|
||||
|
||||
/obj/screen/movable/pic_in_pic/proc/set_view_size(width, height, do_refresh = TRUE)
|
||||
width = CLAMP(width, 0, max_dimensions)
|
||||
height = CLAMP(height, 0, max_dimensions)
|
||||
width = clamp(width, 0, max_dimensions)
|
||||
height = clamp(height, 0, max_dimensions)
|
||||
src.width = width
|
||||
src.height = height
|
||||
|
||||
|
||||
Reference in New Issue
Block a user