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:
parent
69e9a32e1b
commit
97deda2675
1 changed files with 10 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue