From 67c6690689b98b36bffecf557dffe9dca875a810 Mon Sep 17 00:00:00 2001 From: WChrisK Date: Wed, 11 Jun 2014 23:30:25 -0400 Subject: [PATCH] Added a check that doesn't print empty obituary strings, as wad's that hide obituary strings in multiplayer games end up spamming a lot of empty lines. --- src/p_interaction.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/p_interaction.cpp b/src/p_interaction.cpp index 4be8ed6278..0eae786324 100644 --- a/src/p_interaction.cpp +++ b/src/p_interaction.cpp @@ -320,6 +320,10 @@ void ClientObituary (AActor *self, AActor *inflictor, AActor *attacker, int dmgf message = GStrings("OB_DEFAULT"); } + // [CK] Don't display empty strings + if (message == NULL || strlen(message) <= 0) + return; + SexMessage (message, gendermessage, gender, self->player->userinfo.GetName(), attacker->player->userinfo.GetName()); Printf (PRINT_MEDIUM, "%s\n", gendermessage);