Makes it possible to select department channels on intercoms.

This commit is contained in:
PsiOmega
2015-08-29 18:47:20 +02:00
parent 0bd41e604b
commit c730a67d79
7 changed files with 118 additions and 44 deletions

View File

@@ -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