mirror of https://github.com/OpenTTD/OpenTTD
(svn r1260) -Fix: [1090357] Patch for braindead MinGW compiler (luzi82)
parent
f5b68e2d9d
commit
0533d9ff6e
|
@ -16,7 +16,7 @@
|
||||||
#include "network_client.h"
|
#include "network_client.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void DoShowPlayerFinances(int player, bool small);
|
static void DoShowPlayerFinances(int player, bool show_small);
|
||||||
|
|
||||||
|
|
||||||
static void DrawPlayerEconomyStats(Player *p, byte mode)
|
static void DrawPlayerEconomyStats(Player *p, byte mode)
|
||||||
|
@ -210,12 +210,12 @@ static const WindowDesc * const desc_table[2*2] = {
|
||||||
&_other_player_finances_desc,&_other_player_finances_small_desc,
|
&_other_player_finances_desc,&_other_player_finances_small_desc,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void DoShowPlayerFinances(int player, bool small)
|
static void DoShowPlayerFinances(int player, bool show_small)
|
||||||
{
|
{
|
||||||
Window *w;
|
Window *w;
|
||||||
int mode;
|
int mode;
|
||||||
|
|
||||||
mode = ((byte)player != _local_player)*2 + small;
|
mode = ((byte)player != _local_player)*2 + show_small;
|
||||||
w = AllocateWindowDescFront( desc_table[mode], player);
|
w = AllocateWindowDescFront( desc_table[mode], player);
|
||||||
if (w) {
|
if (w) {
|
||||||
w->caption_color = w->window_number;
|
w->caption_color = w->window_number;
|
||||||
|
|
Loading…
Reference in New Issue