mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +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 );
|
ini_free( ini );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user