mirror of https://github.com/OpenTTD/OpenTTD
(svn r1502) -Fix: [1101889] Crash under windows... stupid typo in player_gui.c ^ should've been &
-Fix: in multiplayer clientlist can only be opened oncerelease/0.4.5
parent
7dddb6cf7a
commit
352cf002b2
|
@ -251,7 +251,7 @@ static void MenuClickFinances(int index)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_NETWORK
|
#ifdef ENABLE_NETWORK
|
||||||
extern void ShowClientList();
|
extern void ShowClientList(void);
|
||||||
#endif /* ENABLE_NETWORK */
|
#endif /* ENABLE_NETWORK */
|
||||||
|
|
||||||
static void MenuClickCompany(int index)
|
static void MenuClickCompany(int index)
|
||||||
|
|
|
@ -1255,9 +1255,11 @@ static void ClientListWndProc(Window *w, WindowEvent *e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShowClientList()
|
void ShowClientList(void)
|
||||||
{
|
{
|
||||||
AllocateWindowDesc(&_client_list_desc);
|
Window *w = AllocateWindowDescFront(&_client_list_desc, 0);
|
||||||
|
if (w)
|
||||||
|
w->window_number = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void SwitchMode(int new_mode);
|
extern void SwitchMode(int new_mode);
|
||||||
|
|
|
@ -163,7 +163,7 @@ static void PlayerFinancesWndProc(Window *w, WindowEvent *e)
|
||||||
bool stickied = !!(w->flags4 & WF_STICKY);
|
bool stickied = !!(w->flags4 & WF_STICKY);
|
||||||
int player = w->window_number;
|
int player = w->window_number;
|
||||||
DeleteWindow(w);
|
DeleteWindow(w);
|
||||||
DoShowPlayerFinances(player, mode^1, stickied);
|
DoShowPlayerFinances(player, !HASBIT(mode, 0), stickied);
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case 6: /* increase loan */
|
case 6: /* increase loan */
|
||||||
|
|
Loading…
Reference in New Issue