misc_gui.c
changeset 1274 1d5bd8a0c9d7
parent 1176 cc9d8618620d
child 1299 39c06aba09aa
equal deleted inserted replaced
1273:e4849a568647 1274:1d5bd8a0c9d7
  1257 			/* In the editor set up the vehicle engines correctly (date might have changed) */
  1257 			/* In the editor set up the vehicle engines correctly (date might have changed) */
  1258 			if (_game_mode == GM_EDITOR) StartupEngines();
  1258 			if (_game_mode == GM_EDITOR) StartupEngines();
  1259 		}
  1259 		}
  1260 		break;
  1260 		break;
  1261 	case WE_DESTROY:
  1261 	case WE_DESTROY:
  1262 		// pause is only used in single-player, non-editor mode
  1262 		// pause is only used in single-player, non-editor mode, non menu mode
  1263 		if(!_networking && (_game_mode != GM_EDITOR))
  1263 		if(!_networking && (_game_mode != GM_EDITOR) && (_game_mode != GM_MENU))
  1264 			DoCommandP(0, 0, 0, NULL, CMD_PAUSE);
  1264 			DoCommandP(0, 0, 0, NULL, CMD_PAUSE);
  1265 		_query_string_active = false;
  1265 		_query_string_active = false;
  1266 		FiosFreeSavegameList();
  1266 		FiosFreeSavegameList();
  1267 		break;
  1267 		break;
  1268 	case WE_RESIZE: {
  1268 	case WE_RESIZE: {
  1348 		GenerateFileName();
  1348 		GenerateFileName();
  1349 	} else if (mode == SLD_SAVE_SCENARIO) {
  1349 	} else if (mode == SLD_SAVE_SCENARIO) {
  1350 		strcpy(_edit_str_buf, "UNNAMED");
  1350 		strcpy(_edit_str_buf, "UNNAMED");
  1351 	}
  1351 	}
  1352 
  1352 
  1353 	// pause is only used in single-player, non-editor mode
  1353 	// pause is only used in single-player, non-editor mode, non-menu mode. It
       
  1354 	// will be unpaused in the WE_DESTROY event handler.
  1354 	if(_game_mode != GM_MENU && !_networking && _game_mode != GM_EDITOR)
  1355 	if(_game_mode != GM_MENU && !_networking && _game_mode != GM_EDITOR)
  1355 		DoCommandP(0, 1, 0, NULL, CMD_PAUSE);
  1356 		DoCommandP(0, 1, 0, NULL, CMD_PAUSE);
  1356 
  1357 
  1357 	BuildFileList();
  1358 	BuildFileList();
  1358 
  1359