SVN r43 (trunk)

This commit is contained in:
Christoph Oelckers 2006-04-13 22:40:43 +00:00
commit 4dd936e438
9 changed files with 70 additions and 11 deletions

View file

@ -1028,10 +1028,15 @@ FUNC(LS_Thing_Remove)
while (actor)
{
AActor *temp = iterator.Next ();
// be friendly to the level statistics! ;)
if (actor->flags&MF_COUNTKILL && actor->health > 0) level.total_monsters--;
if (actor->flags&MF_COUNTITEM) level.total_items--;
actor->Destroy ();
// Don't remove live players.
if (actor->player == NULL || actor != actor->player->mo)
{
// be friendly to the level statistics! ;)
if (actor->flags&MF_COUNTKILL && actor->health > 0) level.total_monsters--;
if (actor->flags&MF_COUNTITEM) level.total_items--;
actor->Destroy ();
}
actor = temp;
}