mirror of https://github.com/OpenTTD/OpenTTD
(svn r156) -Codechange: remove obsolete callback arrays
parent
d366958f56
commit
b4cf633f66
18
misc_gui.c
18
misc_gui.c
|
@ -1322,9 +1322,6 @@ void AskForNewGameToStart()
|
||||||
w->vscroll.cap = 27;
|
w->vscroll.cap = 27;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int32 ClickMoneyCheat(int32 p1, int32 p2)
|
int32 ClickMoneyCheat(int32 p1, int32 p2)
|
||||||
{
|
{
|
||||||
DoCommandP(0, -10000000, 0, NULL, CMD_MONEY_CHEAT);
|
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)
|
// p1 player to set to, p2 is -1 or +1 (down/up)
|
||||||
int32 ClickChangePlayerCheat(int32 p1, int32 p2)
|
int32 ClickChangePlayerCheat(int32 p1, int32 p2)
|
||||||
{
|
{
|
||||||
while(p1 >= 0 && p1 < MAX_PLAYERS)
|
while(p1 >= 0 && p1 < MAX_PLAYERS) {
|
||||||
{
|
if (_players[p1].is_active) {
|
||||||
if (_players[p1].is_active)
|
|
||||||
{
|
|
||||||
_local_player = p1;
|
_local_player = p1;
|
||||||
MarkWholeScreenDirty();
|
MarkWholeScreenDirty();
|
||||||
return _local_player;
|
return _local_player;
|
||||||
}
|
}
|
||||||
p1 += p2;
|
p1 += p2;
|
||||||
}
|
}
|
||||||
return _local_player;
|
|
||||||
|
return _local_player;
|
||||||
}
|
}
|
||||||
|
|
||||||
// p1 -1 or +1 (down/up)
|
// p1 -1 or +1 (down/up)
|
||||||
|
@ -1375,12 +1371,6 @@ int32 ClickChangeDateCheat(int32 p1, int32 p2)
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef int32 CheckButtonClick(int32, int32);
|
typedef int32 CheckButtonClick(int32, int32);
|
||||||
static CheckButtonClick * const _cheat_button_proc[] = {
|
|
||||||
ClickMoneyCheat,
|
|
||||||
ClickChangePlayerCheat,
|
|
||||||
ClickChangeDateCheat,
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct CheatEntry {
|
typedef struct CheatEntry {
|
||||||
byte type; // type of selector
|
byte type; // type of selector
|
||||||
|
|
|
@ -672,10 +672,10 @@ int32 v_PositionMainToolbar(int32 p1)
|
||||||
|
|
||||||
int32 AiNew_PatchActive_Warning(int32 p1)
|
int32 AiNew_PatchActive_Warning(int32 p1)
|
||||||
{
|
{
|
||||||
if (p1 == 1)
|
if (p1 == 1)
|
||||||
ShowErrorMessage(-1, TEMP_AI_ACTIVATED, 0, 0);
|
ShowErrorMessage(-1, TEMP_AI_ACTIVATED, 0, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32 InvisibleTreesActive(int32 p1)
|
int32 InvisibleTreesActive(int32 p1)
|
||||||
|
@ -685,9 +685,6 @@ int32 InvisibleTreesActive(int32 p1)
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef int32 PatchButtonClick(int32);
|
typedef int32 PatchButtonClick(int32);
|
||||||
static PatchButtonClick * const _patch_button_proc[] = {
|
|
||||||
&v_PositionMainToolbar,
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct PatchEntry {
|
typedef struct PatchEntry {
|
||||||
byte type; // type of selector
|
byte type; // type of selector
|
||||||
|
|
Loading…
Reference in New Issue