- fixed: The secret counter was not incremented for items that had the UDMF COUNTSECRET flag set.
This commit is contained in:
parent
5079d6c505
commit
f8899f98fc
2 changed files with 13 additions and 4 deletions
|
|
@ -3993,8 +3993,12 @@ void AActor::HandleSpawnFlags ()
|
|||
}
|
||||
if (SpawnFlags & MTF_SECRET)
|
||||
{
|
||||
//Printf("Secret %s in sector %i!\n", GetTag(), Sector->sectornum);
|
||||
flags5 |= MF5_COUNTSECRET;
|
||||
if (!(flags5 & MF5_COUNTSECRET))
|
||||
{
|
||||
//Printf("Secret %s in sector %i!\n", GetTag(), Sector->sectornum);
|
||||
flags5 |= MF5_COUNTSECRET;
|
||||
level.total_secrets++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue