mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Unlock any eligible new achievements that may have been added.
This commit is contained in:
parent
1247f365d0
commit
6cc772e71e
@ -43,6 +43,23 @@ AchievementsMgr::AchievementsMgr()
|
||||
}
|
||||
}
|
||||
|
||||
for( auto& v : m_map )
|
||||
{
|
||||
auto& it = v.second.item;
|
||||
if( it->doneTime > 0 )
|
||||
{
|
||||
auto c = it->items;
|
||||
if( c )
|
||||
{
|
||||
while( *c )
|
||||
{
|
||||
if( (*c)->unlockTime == 0 ) (*c)->unlockTime = it->doneTime;
|
||||
c++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ini_free( ini );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user