[MIRROR] Runechat now shows on the thing the talker is in, rather then on the talker themself (#304)

* Changes the object runechat applys to from the thing that said something to the thing sitting on the turf the thing that said something is in (#52738)

Changes the object runechat text is overlayed onto from the talker, to the closest thing to the turf the talker is in.
This means if someone is talking in a locker, you can see it. Ditto for radios in people's packs.

* Runechat now shows on the thing the talker is in, rather then on the talker themself

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-08-12 11:30:06 +01:00
committed by GitHub
co-authored by LemonInTheDark
parent d7369f6fd6
commit 0526e7724f
+1 -1
View File
@@ -129,7 +129,7 @@
approx_lines = max(1, mheight / CHAT_MESSAGE_APPROX_LHEIGHT)
// Translate any existing messages upwards, apply exponential decay factors to timers
message_loc = target
message_loc = get_atom_on_turf(target)
if (owned_by.seen_messages)
var/idx = 1
var/combined_height = approx_lines