Runetime errors with chat.

This commit is contained in:
quotefox
2022-09-12 19:54:21 +01:00
parent 361e0611f5
commit 1c0dfccbc9
2 changed files with 4 additions and 0 deletions
+4
View File
@@ -59,6 +59,7 @@
* Calls qdel on the chatmessage when its parent is deleted, used to register qdel signal
*/
/datum/chatmessage/proc/on_parent_qdel()
UnregisterSignal(src, COMSIG_PARENT_QDELETING)
qdel(src)
@@ -107,6 +108,9 @@
if (extra_classes.Find("virtual-speaker"))
var/image/r_icon = image('icons/UI_Icons/chat/chat_icons.dmi', icon_state = "radio")
text = "\icon[r_icon] " + text
else if (extra_classes.Find("emote"))
var/image/r_icon = image('icons/ui_icons/chat/chat_icons.dmi', icon_state = "emote")
text = "\icon[r_icon] " + text
// We dim italicized text to make it more distinguishable from regular text
var/tgt_color = extra_classes.Find("italics") ? target.chat_color_darkened : target.chat_color