mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r1126) -Fix: [Network] Pressing Disconnect on the GUI puts you back to the
main-menu (so you no longer stay ingame (if you were))
This commit is contained in:
parent
196dbd66c9
commit
3c45c05eb2
@ -1189,6 +1189,8 @@ void ShowClientList()
|
||||
AllocateWindowDesc(&_client_list_desc);
|
||||
}
|
||||
|
||||
extern void SwitchMode(int new_mode);
|
||||
|
||||
static void NetworkJoinStatusWindowWndProc(Window *w, WindowEvent *e)
|
||||
{
|
||||
switch(e->event) {
|
||||
@ -1224,8 +1226,9 @@ static void NetworkJoinStatusWindowWndProc(Window *w, WindowEvent *e)
|
||||
switch(e->click.widget) {
|
||||
case 0: case 3: /* Close 'X' | Disconnect button */
|
||||
NetworkDisconnect();
|
||||
ShowNetworkGameWindow();
|
||||
DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0);
|
||||
SwitchMode(SM_MENU);
|
||||
ShowNetworkGameWindow();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user