mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +00:00
(svn r9757) -Fix [FS#1244842]: when you have closed the "Load game"/"New game" windows accessible from the "New Server" window, any creation of new game/loading from the intro menu should not start a server.
This commit is contained in:
parent
cbd9a1bf0d
commit
0aad91f43b
@ -64,6 +64,10 @@ static void SelectGameWndProc(Window *w, WindowEvent *e)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WE_CLICK:
|
case WE_CLICK:
|
||||||
|
/* Do not create a network server when you (just) have closed one of the game
|
||||||
|
* creation/load windows for the network server. */
|
||||||
|
if (2 <= e->we.click.widget && e->we.click.widget <= 6) _is_network_server = false;
|
||||||
|
|
||||||
switch (e->we.click.widget) {
|
switch (e->we.click.widget) {
|
||||||
case 2: ShowGenerateLandscape(); break;
|
case 2: ShowGenerateLandscape(); break;
|
||||||
case 3: ShowSaveLoadDialog(SLD_LOAD_GAME); break;
|
case 3: ShowSaveLoadDialog(SLD_LOAD_GAME); break;
|
||||||
|
Loading…
Reference in New Issue
Block a user