From a8e427fc7f356a67f6a89cbfc988db7c1c806da9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 8 Jun 2024 11:44:30 +0200 Subject: [PATCH] Locked achievements can't be done. --- profiler/src/profiler/TracyAchievements.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/profiler/src/profiler/TracyAchievements.cpp b/profiler/src/profiler/TracyAchievements.cpp index 7c907b71..584cd5b9 100644 --- a/profiler/src/profiler/TracyAchievements.cpp +++ b/profiler/src/profiler/TracyAchievements.cpp @@ -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 ) );