Skip to content

Commit

Permalink
Simplify sanitize_frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
out-of-phaze committed Oct 28, 2023
1 parent b72bfb5 commit a680202
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/_helpers/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,7 @@ Turf and target are seperate in case you want to teleport some distance from a t

//Ensure the frequency is within bounds of what it should be sending/recieving at
/proc/sanitize_frequency(var/f, var/low = PUBLIC_LOW_FREQ, var/high = PUBLIC_HIGH_FREQ)
f = round(f)
f = max(low, f)
f = min(high, f)
return f
return clamp(round(f), low, high)

//Turns 1479 into 147.9
/proc/format_frequency(var/f)
Expand Down

0 comments on commit a680202

Please sign in to comment.