diff options
Diffstat (limited to 'src/players.cpp')
-rw-r--r-- | src/players.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/players.cpp b/src/players.cpp index bb2fff810..b323e5e7a 100644 --- a/src/players.cpp +++ b/src/players.cpp @@ -14,6 +14,7 @@ #include "network/network.h" #include "network/network_internal.h" #include "variables.h" +#include "cheat_func.h" #include "ai/ai.h" #include "player_face.h" #include "group.h" @@ -956,19 +957,6 @@ StringID EndGameGetPerformanceTitleFromValue(uint value) return _endgame_perf_titles[value]; } -/** Return true if any cheat has been used, false otherwise */ -static bool CheatHasBeenUsed() -{ - const Cheat* cht = (Cheat*)&_cheats; - const Cheat* cht_last = &cht[sizeof(_cheats) / sizeof(Cheat)]; - - for (; cht != cht_last; cht++) { - if (cht->been_used) return true; - } - - return false; -} - /** Save the highscore for the player */ int8 SaveHighScoreValue(const Player *p) { |