| 17686 | } |
| 17687 | |
| 17688 | bool allowedCompendiumProgress() |
| 17689 | { |
| 17690 | if ( gameModeManager.currentMode == GameModeManager_t::GAME_MODE_CUSTOM_RUN && gameModeManager.currentSession.challengeRun.isActive() |
| 17691 | && gameModeManager.currentSession.challengeRun.lid.find("challenge") != std::string::npos ) |
| 17692 | { |
| 17693 | return false; // challenge event run |
| 17694 | } |
| 17695 | if ( Mods::disableSteamAchievements || (svFlags & SV_FLAG_CHEATS) ) |
| 17696 | { |
| 17697 | #ifndef DEBUG_ACHIEVEMENTS |
| 17698 | return false; |
| 17699 | #endif |
| 17700 | } |
| 17701 | return true; |
| 17702 | } |
| 17703 | |
| 17704 | static ConsoleVariable<bool> cvar_compendiumDebugSave("/compendium_debug_save", false); |
| 17705 |
no test coverage detected