Achievements could be unlocked in custom levels/make and play, so this adds the wrapper function `game.unlockAchievement` which calls `NETWORK_unlockAchievement` if `map.custommode` is false.
Also, this function and `Game::unlocknum` have both been `ifdef`ed to be empty if MAKEANDPLAY is defined.
This commit is contained in:
AllyTally
2020-08-01 16:49:07 -03:00
committed by Ethan Lee
parent c8b4c0f1e7
commit 06e5eb38d9
4 changed files with 47 additions and 38 deletions

View File

@@ -413,6 +413,7 @@ public:
bool shouldreturntopausemenu;
void returntopausemenu();
void unlockAchievement(const char *name);
bool disablepause;
};