Unlock any eligible new achievements that may have been added.

This commit is contained in:
Bartosz Taudul 2024-06-08 11:55:55 +02:00
parent 1247f365d0
commit 6cc772e71e
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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 );
}