- fixed: The secret counter was not incremented for items that had the UDMF COUNTSECRET flag set.

This commit is contained in:
Christoph Oelckers 2013-08-28 11:14:48 +02:00
commit f8899f98fc
2 changed files with 13 additions and 4 deletions

View file

@ -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++;
}
}
}