SVN r43 (trunk)
This commit is contained in:
parent
ab1d4a2e0f
commit
4dd936e438
9 changed files with 70 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue