mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Makes it possible to select department channels on intercoms.
This commit is contained in:
@@ -245,8 +245,8 @@ 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(high, f)
|
||||
f = min(low, f)
|
||||
f = max(low, f)
|
||||
f = min(high, f)
|
||||
if ((f % 2) == 0) //Ensure the last digit is an odd number
|
||||
f += 1
|
||||
return f
|
||||
@@ -569,7 +569,7 @@ proc/GaussRandRound(var/sigma,var/roundto)
|
||||
var/turf/current = get_turf(source)
|
||||
var/turf/target_turf = get_turf(target)
|
||||
var/steps = 0
|
||||
|
||||
|
||||
if(!current || !target_turf)
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user