mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r1502) -Fix: [1101889] Crash under windows... stupid typo in player_gui.c ^ should've been &
-Fix: in multiplayer clientlist can only be opened once
This commit is contained in:
parent
7dddb6cf7a
commit
352cf002b2
@ -251,7 +251,7 @@ static void MenuClickFinances(int index)
|
||||
}
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
extern void ShowClientList();
|
||||
extern void ShowClientList(void);
|
||||
#endif /* ENABLE_NETWORK */
|
||||
|
||||
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);
|
||||
|
@ -163,7 +163,7 @@ static void PlayerFinancesWndProc(Window *w, WindowEvent *e)
|
||||
bool stickied = !!(w->flags4 & WF_STICKY);
|
||||
int player = w->window_number;
|
||||
DeleteWindow(w);
|
||||
DoShowPlayerFinances(player, mode^1, stickied);
|
||||
DoShowPlayerFinances(player, !HASBIT(mode, 0), stickied);
|
||||
} break;
|
||||
|
||||
case 6: /* increase loan */
|
||||
|
Loading…
Reference in New Issue
Block a user