mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 10:02:28 +00:00
Merge remote-tracking branch 'remotes/git-svn' tgstation r4838 into bs12_with_tgport
Conflicts: code/game/gamemodes/events.dm code/game/gamemodes/events/space_ninja.dm code/game/machinery/atmo_control.dm code/game/machinery/doors/firedoor.dm code/game/machinery/telecomms/broadcaster.dm code/game/objects/structures/watercloset.dm code/modules/clothing/glasses/glasses.dm code/modules/mob/living/carbon/human/human.dm code/modules/mob/living/simple_animal/life.dm code/modules/mob/new_player/new_player.dm Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
@@ -193,6 +193,12 @@
|
||||
// Returns a list of mobs who can hear any of the radios given in @radios
|
||||
var/list/speaker_coverage = list()
|
||||
for(var/obj/item/device/radio/R in radios)
|
||||
// This is usually for headsets, which only the wearer can hear.
|
||||
if(R.canhear_range == 0)
|
||||
if(ismob(R.loc))
|
||||
. += R.loc
|
||||
continue
|
||||
|
||||
var/turf/speaker = get_turf(R)
|
||||
if(speaker)
|
||||
for(var/turf/T in hear(R.canhear_range,speaker))
|
||||
@@ -203,7 +209,7 @@
|
||||
var/turf/ear = get_turf(M)
|
||||
if(ear && (level == 0 || level == ear.z))
|
||||
if(ear in speaker_coverage)
|
||||
. += M
|
||||
. |= M
|
||||
|
||||
return .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user