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 authored and Ethan Lee committed 2020-08-01 16:09:24 -04:00
1 parent c8b4c0f1e7
commit 06e5eb38d9
4 files changed
+47 -38

No files matched your search

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