Fixed mapped intercoms being on the common frequency (#31392)

This commit is contained in:
DamianX
2021-11-24 15:32:30 +01:00
committed by GitHub
parent b7a18e256d
commit 865e987ec3

View File

@@ -61,7 +61,11 @@
/obj/item/device/radio/initialize()
. = ..()
frequency = COMMON_FREQ //common chat
// Mapped radios may have their frequency set.
// This prevents it from getting reset.
if(frequency == initial(frequency))
frequency = COMMON_FREQ //common chat
if(freerange)
if(frequency < 1200 || frequency > 1600)
frequency = sanitize_frequency(frequency, maxf)