Locked achievements can't be done.

This commit is contained in:
Bartosz Taudul 2024-06-08 11:44:30 +02:00
parent d9fe3ed9a6
commit a8e427fc7f
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -69,6 +69,7 @@ void AchievementsMgr::Achieve( const char* id )
{
auto it = m_map.find( id );
assert( it != m_map.end() );
if( it->second.item->unlockTime == 0 ) return;
if( it->second.item->doneTime > 0 ) return;
const auto t = uint64_t( time( nullptr ) );