File diff r8151:3983fe61f8f0 → r8152:85dbf9d0e190
src/network/network_gui.cpp
Show inline comments
 
@@ -801,24 +801,25 @@ static void NetworkStartServerWindowWndP
 
			ShowDropDownMenu(w, _language_dropdown, sel, NSSW_LANGUAGE_BTN, 0, 0);
 
			break;
 
		}
 
		case NSSW_START: // Start game
 
			_is_network_server = true;
 

	
 
			if (nd->map == NULL) { // start random new game
 
				ShowGenerateLandscape();
 
			} else { // load a scenario
 
				char *name = FiosBrowseTo(nd->map);
 
				if (name != NULL) {
 
					SetFiosType(nd->map->type);
 
					_file_to_saveload.filetype = FT_SCENARIO;
 
					ttd_strlcpy(_file_to_saveload.name, name, sizeof(_file_to_saveload.name));
 
					ttd_strlcpy(_file_to_saveload.title, nd->map->title, sizeof(_file_to_saveload.title));
 

	
 
					DeleteWindow(w);
 
					SwitchMode(SM_START_SCENARIO);
 
				}
 
			}
 
			break;
 
		case NSSW_LOAD: // Load game
 
			_is_network_server = true;
 
			/* XXX - WC_NETWORK_WINDOW (this window) should stay, but if it stays, it gets
 
			 * copied all the elements of 'load game' and upon closing that, it segfaults */