mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-31 13:50:48 +00:00
- fixed custom obituary lookup.
This commit is contained in:
parent
1940527dba
commit
a2369b945c
1 changed files with 2 additions and 2 deletions
|
@ -248,11 +248,11 @@ void ClientObituary (AActor *self, AActor *inflictor, AActor *attacker, int dmgf
|
|||
else
|
||||
{
|
||||
lookup.Format("$Obituary_%s_%s", attacker->GetClass()->TypeName.GetChars(), mod.GetChars());
|
||||
if (GStrings[lookup]) message = lookup;
|
||||
if (GStrings[lookup.GetChars() + 1]) message = lookup;
|
||||
else
|
||||
{
|
||||
lookup.Format("$Obituary_%s", attacker->GetClass()->TypeName.GetChars(), mod.GetChars());
|
||||
if (GStrings[lookup]) message = lookup;
|
||||
if (GStrings[lookup.GetChars() + 1]) message = lookup;
|
||||
else
|
||||
{
|
||||
IFVIRTUALPTR(attacker, AActor, GetObituary)
|
||||
|
|
Loading…
Reference in a new issue