Fix clamp case breaking BYOND versions below 513.1490

513.1490 added `clamp` as a native proc
This commit is contained in:
Rykka
2020-05-06 06:42:36 -04:00
parent 586dcad6a1
commit 9ceb5f768b
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@
if(user.client)
user.client.images += bar
progress = clamp(progress, 0, goal)
progress = CLAMP(progress, 0, goal)
bar.icon_state = "prog_bar_[round(((progress / goal) * 100), 5)]"
if(!shown && user.is_preference_enabled(/datum/client_preference/show_progress_bar))
user.client.images += bar