mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-26 18:13:11 +00:00
removed CLAMP define
This commit is contained in:
@@ -120,7 +120,7 @@ GLOBAL_LIST_EMPTY(fusion_cores)
|
||||
. = owned_field.bullet_act(Proj)
|
||||
|
||||
/obj/machinery/power/fusion_core/proc/set_strength(var/value)
|
||||
value = CLAMP(value, MIN_FIELD_STR, MAX_FIELD_STR)
|
||||
value = clamp(value, MIN_FIELD_STR, MAX_FIELD_STR)
|
||||
|
||||
if(field_strength != value)
|
||||
field_strength = value
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
return
|
||||
|
||||
if(href_list["access_device"])
|
||||
var/idx = CLAMP(text2num(href_list["toggle_active"]), 1, connected_devices.len)
|
||||
var/idx = clamp(text2num(href_list["toggle_active"]), 1, connected_devices.len)
|
||||
cur_viewed_device = connected_devices[idx]
|
||||
updateUsrDialog()
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user