summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-03 21:48:21 +0000
committerdarkvater <darkvater@openttd.org>2004-09-03 21:48:21 +0000
commitb4cf633f66491956dcb94e7fa39e687f9341b7e1 (patch)
tree9ffb96adc369a402f66fb3e005d53ec24cb91bad /misc_gui.c
parentd366958f56703045305c2c3b5978c223e702ced2 (diff)
downloadopenttd-b4cf633f66491956dcb94e7fa39e687f9341b7e1.tar.xz
(svn r156) -Codechange: remove obsolete callback arrays
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/misc_gui.c b/misc_gui.c
index c79c6aa3e..1796305c3 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1322,9 +1322,6 @@ void AskForNewGameToStart()
w->vscroll.cap = 27;
}
-
-
-
int32 ClickMoneyCheat(int32 p1, int32 p2)
{
DoCommandP(0, -10000000, 0, NULL, CMD_MONEY_CHEAT);
@@ -1334,17 +1331,16 @@ int32 ClickMoneyCheat(int32 p1, int32 p2)
// p1 player to set to, p2 is -1 or +1 (down/up)
int32 ClickChangePlayerCheat(int32 p1, int32 p2)
{
- while(p1 >= 0 && p1 < MAX_PLAYERS)
- {
- if (_players[p1].is_active)
- {
+ while(p1 >= 0 && p1 < MAX_PLAYERS) {
+ if (_players[p1].is_active) {
_local_player = p1;
MarkWholeScreenDirty();
return _local_player;
}
p1 += p2;
}
-return _local_player;
+
+ return _local_player;
}
// p1 -1 or +1 (down/up)
@@ -1375,12 +1371,6 @@ int32 ClickChangeDateCheat(int32 p1, int32 p2)
}
typedef int32 CheckButtonClick(int32, int32);
-static CheckButtonClick * const _cheat_button_proc[] = {
- ClickMoneyCheat,
- ClickChangePlayerCheat,
- ClickChangeDateCheat,
-};
-
typedef struct CheatEntry {
byte type; // type of selector