mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Unlock new top-level achievements in already unlocked categories.
This commit is contained in:
parent
1a7eefc6af
commit
e4cda51bf6
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user