diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index b0043bb5..84ba2851 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -6940,9 +6940,16 @@ void Game::returntoingame(void) DEFER_CALLBACK(nextbgcolor); } -void Game::unlockAchievement(const char *name) { -#if !defined(MAKEANDPLAY) - if (!map.custommode) NETWORK_unlockAchievement(name); +void Game::unlockAchievement(const char* name) +{ +#ifndef MAKEANDPLAY + if (map.custommode) + { + return; + } + + vlog_debug("Achievement \"%s\" unlocked.", name); + NETWORK_unlockAchievement(name); #endif }