1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Add debug print to unlockAchievement

This print is useful to know if an achievement (one that's not already
unlocked) would actually be unlocked in an end user environment, while
running the game in a dev environment.

Also fixed up the style of the function because it was definitely
inconsistent with the surrounding code.
This commit is contained in:
Misa 2022-12-29 14:25:27 -08:00
parent 69e9a32e1b
commit 97deda2675

View file

@ -6940,9 +6940,16 @@ void Game::returntoingame(void)
DEFER_CALLBACK(nextbgcolor); DEFER_CALLBACK(nextbgcolor);
} }
void Game::unlockAchievement(const char *name) { void Game::unlockAchievement(const char* name)
#if !defined(MAKEANDPLAY) {
if (!map.custommode) NETWORK_unlockAchievement(name); #ifndef MAKEANDPLAY
if (map.custommode)
{
return;
}
vlog_debug("Achievement \"%s\" unlocked.", name);
NETWORK_unlockAchievement(name);
#endif #endif
} }