summaryrefslogtreecommitdiff
path: root/src/players.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-17 21:21:01 +0000
committerrubidium <rubidium@openttd.org>2008-04-17 21:21:01 +0000
commitb1d1a4ac660de8415a066c43656459aeada434c8 (patch)
tree5c9f5720b6e3a7be462d940982b7a3ed266ae13f /src/players.cpp
parent5050ba84fb92c814161dbb129096fb642fc1d55c (diff)
downloadopenttd-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.cpp14
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)
{