- Fixed: The obituary code didn't use the attacker's name for kills caused

by other players.

SVN r207 (trunk)
This commit is contained in:
Christoph Oelckers 2006-06-21 12:10:36 +00:00
parent e2ac4c1168
commit f356e356a0
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,6 @@
June 21, 2006 (Changes by Graf Zahl) June 21, 2006 (Changes by Graf Zahl)
- Fixed: The obituary code didn't use the attacker's name for kills caused
by other players.
- Fixed: PIT_StompThing never checked for COMPATF_NO_PASSMOBJ. - Fixed: PIT_StompThing never checked for COMPATF_NO_PASSMOBJ.
- Fixed: COMPATF_TRACE returned true for all two-sided lines, not just for - Fixed: COMPATF_TRACE returned true for all two-sided lines, not just for
those with the same sector on both sides. those with the same sector on both sides.

View file

@ -295,6 +295,7 @@ void ClientObituary (AActor *self, AActor *inflictor, AActor *attacker)
} }
} }
} }
else attacker = self; // for the message creation
if (message != NULL && message[0] == '$') if (message != NULL && message[0] == '$')
{ {
@ -307,7 +308,7 @@ void ClientObituary (AActor *self, AActor *inflictor, AActor *attacker)
} }
SexMessage (message, gendermessage, gender, SexMessage (message, gendermessage, gender,
self->player->userinfo.netname, self->player->userinfo.netname); self->player->userinfo.netname, attacker->player->userinfo.netname);
Printf (PRINT_MEDIUM, "%s\n", gendermessage); Printf (PRINT_MEDIUM, "%s\n", gendermessage);
} }