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:
vageyenaman@gmail.com
2012-02-28 00:47:54 +00:00
parent 896fdae5a1
commit 0cd813a786
4 changed files with 8 additions and 10 deletions

View File

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