diff options
author | rubidium <rubidium@openttd.org> | 2008-04-17 21:21:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-17 21:21:01 +0000 |
commit | b1d1a4ac660de8415a066c43656459aeada434c8 (patch) | |
tree | 5c9f5720b6e3a7be462d940982b7a3ed266ae13f /src/players.cpp | |
parent | 5050ba84fb92c814161dbb129096fb642fc1d55c (diff) | |
download | openttd-b1d1a4ac660de8415a066c43656459aeada434c8.tar.xz |
(svn r12757) -Codechange: move all cheat related stuff from all over the place to a single location.
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) { |