Fix incorrect obituary hit location

This commit is contained in:
smallmodel 2024-10-02 16:42:10 +02:00
parent 15e8a71249
commit 388ab210a7
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 14 additions and 10 deletions

View file

@ -2116,7 +2116,11 @@ G_PrintDeathMessageEmulated(const char *s1, const char *s2, char *attackerName,
return va("%c%s %s\n", hudColor, victimName, result1);
} else if (tolower(type) == 'p') {
if (*s2 == 'x') {
return va("%c%s %s %s\n", hudColor, victimName, result1, attackerName);
if (s2[1] && s2[2]) {
return va("%c%s %s %s %s\n", hudColor, victimName, result1, attackerName, s2 + 2);
} else {
return va("%c%s %s %s\n", hudColor, victimName, result1, attackerName);
}
} else {
return va("%c%s %s %s%s\n", hudColor, victimName, result1, attackerName, result2);
}