mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
A couple more bugfixes and tweaks.
Changed the way radio range works. Headsets have a range of 1, intercoms 3. If a person is in this range, they get to hear incoming messages. Fixed the disposal bug; items were dropping on the floor when placed in disposals... Changed the way NTSL::TCS broadcast() generates a dummy radio. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3206 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -222,16 +222,10 @@ datum/signal
|
||||
var/datum/radio_frequency/connection = radio_controller.return_frequency(freq)
|
||||
newsign.data["connection"] = connection
|
||||
|
||||
// This is a really hacky way of finding a source radio - but it works, i suppose.
|
||||
// The radio is a radio headset!
|
||||
|
||||
if(!hradio)
|
||||
for(var/obj/item/device/radio/headset/r in world)
|
||||
hradio = r
|
||||
break
|
||||
|
||||
// There are no radios in the world! Oh no! Just make a new one and pray to baby jesus
|
||||
if(!hradio)
|
||||
hradio = new
|
||||
hradio = new /obj/item/device/radio/headset
|
||||
|
||||
newsign.data["radio"] = hradio
|
||||
newsign.data["vmessage"] = H.voice_message
|
||||
|
||||
Reference in New Issue
Block a user