File diff r26193:4bc7915a2156 → r26194:f7347205838e
src/openttd.cpp
Show inline comments
 
@@ -251,13 +251,26 @@ static void WriteSavegameInfo(const char
 

	
 
	GamelogInfo(_load_check_data.gamelog_action, _load_check_data.gamelog_actions, &last_ottd_rev, &ever_modified, &removed_newgrfs);
 

	
 
	char buf[8192];
 
	char *p = buf;
 
	p += seprintf(p, lastof(buf), "Name:         %s\n", name);
 
	p += seprintf(p, lastof(buf), "Savegame ver: %d\n", _sl_version);
 
	const char *type = "";
 
	extern SaveLoadVersion _sl_is_faked_ext;
 
	extern bool _sl_is_ext_version;
 
	if (_sl_is_faked_ext != SL_MIN_VERSION) {
 
		type = " (fake extended)";
 
	} else if (_sl_is_ext_version) {
 
		type = " (extended)";
 
	}
 
	p += seprintf(p, lastof(buf), "Savegame ver: %d%s\n", _sl_version, type);
 
	for (size_t i = 0; i < XSLFI_SIZE; i++) {
 
		if (_sl_xv_feature_versions[i] > 0) {
 
			p += seprintf(p, lastof(buf), "    Feature: %s = %d\n", SlXvGetFeatureName((SlXvFeatureIndex) i), _sl_xv_feature_versions[i]);
 
		}
 
	}
 
	p += seprintf(p, lastof(buf), "NewGRF ver:   0x%08X\n", last_ottd_rev);
 
	p += seprintf(p, lastof(buf), "Modified:     %d\n", ever_modified);
 

	
 
	if (removed_newgrfs) {
 
		p += seprintf(p, lastof(buf), "NewGRFs have been removed\n");
 
	}
 
@@ -1044,12 +1057,15 @@ void SwitchToMode(SwitchMode new_mode)
 
					/* Reset engine pool to simplify changing engine NewGRFs in scenario editor. */
 
					EngineOverrideManager::ResetToCurrentNewGRFConfig();
 
				}
 
				OnStartGame(_network_dedicated);
 
				/* Decrease pause counter (was increased from opening load dialog) */
 
				Command<CMD_PAUSE>::Post(PM_PAUSED_SAVELOAD, false);
 
				if (_is_network_server && _settings_client.network.save_password) {
 
					NetworkLoadPassword();
 
				}
 
			}
 
			break;
 
		}
 

	
 
		case SM_RESTART_HEIGHTMAP: // Load a heightmap and start a new game from it with current settings
 
		case SM_START_HEIGHTMAP: // Load a heightmap and start a new game from it