mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user