Skip to content

Commit

Permalink
we don't log messages that were never said
Browse files Browse the repository at this point in the history
  • Loading branch information
GenericDM committed Nov 13, 2023
1 parent 01c142d commit 8c06e9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/mob/living/living_say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ GLOBAL_LIST_INIT(department_radio_keys, list(
saymode = null
message_mods -= RADIO_EXTENSION
message_range = 1
src.log_talk(message, LOG_WHISPER, custom_say_emote = message_mods[MODE_CUSTOM_SAY_EMOTE])
var/logged_message = message
if(stat == HARD_CRIT) //This is cheaper than checking for MODE_WHISPER_CRIT message mod
var/health_diff = round(-HEALTH_THRESHOLD_DEAD + health)
// If we cut our message short, abruptly end it with a-..
Expand All @@ -172,6 +172,7 @@ GLOBAL_LIST_INIT(department_radio_keys, list(
return
message_mods[WHISPER_MODE] = MODE_WHISPER_CRIT
succumbed = TRUE
src.log_talk(logged_message, LOG_WHISPER, custom_say_emote = message_mods[MODE_CUSTOM_SAY_EMOTE])
else
src.log_talk(message, LOG_SAY, forced_by=forced, custom_say_emote = message_mods[MODE_CUSTOM_SAY_EMOTE])

Expand Down

0 comments on commit 8c06e9f

Please sign in to comment.