- fixed obituary string generation

This commit is contained in:
Christoph Oelckers 2022-08-12 21:24:09 +02:00
parent 6489f5ebf0
commit e27e3453f9

View file

@ -247,11 +247,11 @@ void ClientObituary (AActor *self, AActor *inflictor, AActor *attacker, int dmgf
} }
else else
{ {
lookup.Format("$Obituary_%s_%s", attacker->GetClass()->TypeName, mod.GetChars()); lookup.Format("$Obituary_%s_%s", attacker->GetClass()->TypeName.GetChars(), mod.GetChars());
if (GStrings[lookup]) message = lookup; if (GStrings[lookup]) message = lookup;
else else
{ {
lookup.Format("$Obituary_%s", attacker->GetClass()->TypeName, mod.GetChars()); lookup.Format("$Obituary_%s", attacker->GetClass()->TypeName.GetChars(), mod.GetChars());
if (GStrings[lookup]) message = lookup; if (GStrings[lookup]) message = lookup;
else else
{ {