Merge branch 'maint'

This commit is contained in:
Christoph Oelckers 2013-08-28 11:20:53 +02:00
commit 9c2454eacc
3 changed files with 13 additions and 9 deletions

View file

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