Unlock new top-level achievements in already unlocked categories.

This commit is contained in:
Bartosz Taudul 2024-07-08 19:26:27 +02:00
parent 1a7eefc6af
commit e4cda51bf6
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -77,6 +77,21 @@ AchievementsMgr::AchievementsMgr()
} }
} }
auto c = data::AchievementCategories;
while( *c )
{
if( (*c)->unlockTime > 0 )
{
auto items = (*c)->items;
while( *items )
{
if( (*items)->unlockTime == 0 ) (*items)->unlockTime = (*c)->unlockTime;
items++;
}
}
c++;
}
ini_free( ini ); ini_free( ini );
} }