mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49: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);
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue