remove remove

This commit is contained in:
eswordthecat
2015-04-03 14:23:05 +08:00
parent f1666b86d7
commit f5238fee8d
2 changed files with 14 additions and 14 deletions

View File

@@ -157,7 +157,7 @@ var/list/freqtoname = list(
return
/atom/movable/proc/GetSource()
return
return src
/atom/movable/proc/GetRadio()

View File

@@ -30,19 +30,19 @@
if (isnull(client))
return
if (isnull(radio_freq))
if (!(client.prefs.toggles & CHAT_GHOSTEARS))
return
var/source = speaker.GetSource()
var/source_turf = get_turf(source)
if (get_dist(source_turf, src) <= world.view) // If this isn't true, we can't be in view, so no need for costlier proc.
if (source_turf in view(src))
message = "<B>[message]</B>"
else
if (!(client.prefs.toggles & CHAT_GHOSTRADIO))
return
if (isnull(radio_freq))
if (!(client.prefs.toggles & CHAT_GHOSTEARS))
return
else
speaker = speaker.GetSource()
if (!(client.prefs.toggles & CHAT_GHOSTRADIO))
return
var/turf/T = get_turf(speaker)
if (get_dist(T, src) <= world.view) // If this isn't true, we can't be in view, so no need for costlier proc.
if (T in view(src))
message = "<b>[message]</b>"
src << "<a href='?src=\ref[src];follow=\ref[speaker]'>(Follow)</a> [message]"
src << "<a href='?src=\ref[src];follow=\ref[source]'>(Follow)</a> [message]"