- Fixed: Summoned friendly monsters added to the total kill count.

SVN r334 (trunk)
This commit is contained in:
Christoph Oelckers 2006-09-20 08:09:00 +00:00
commit bbfc149bd7
3 changed files with 7 additions and 2 deletions

View file

@ -2128,6 +2128,10 @@ void Net_DoCommand (int type, BYTE **stream, int player)
source->z + 8 * FRACUNIT, ALLOW_REPLACE);
if (spawned != NULL && type == DEM_SUMMONFRIEND)
{
if (spawned->CountsAsKill())
{
level.total_monsters--;
}
spawned->FriendPlayer = player + 1;
spawned->flags |= MF_FRIENDLY;
spawned->LastHeard = players[player].mo;