From f03dd6b8a27cdc7f1c73a1ca233da8a07cf410ec Mon Sep 17 00:00:00 2001 From: ghost sheep Date: Sat, 29 Jan 2022 16:05:47 +0100 Subject: [PATCH] Fix runechat height-offset only reading your own offset value (#64507) #63848 reads owner and not target --- code/datums/chatmessage.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/chatmessage.dm b/code/datums/chatmessage.dm index 1e578a0ae2d..b7b7bd1305b 100644 --- a/code/datums/chatmessage.dm +++ b/code/datums/chatmessage.dm @@ -195,8 +195,8 @@ message.plane = RUNECHAT_PLANE message.appearance_flags = APPEARANCE_UI_IGNORE_ALPHA | KEEP_APART message.alpha = 0 - message.pixel_y = owner.maptext_height - message.pixel_x = (owner.maptext_width * 0.5) - 16 + message.pixel_y = target.maptext_height + message.pixel_x = (target.maptext_width * 0.5) - 16 message.maptext_width = CHAT_MESSAGE_WIDTH message.maptext_height = mheight message.maptext_x = (CHAT_MESSAGE_WIDTH - owner.bound_width) * -0.5