File diff r27049:913f3ce60451 → r27050:d85c65824c1e
src/saveload/afterload.cpp
Show inline comments
 
@@ -2874,12 +2874,17 @@ bool AfterLoadGame()
 
		_settings_game.locale.units_weight   = Clamp(_old_units, 1, 2);
 
		_settings_game.locale.units_volume   = Clamp(_old_units, 1, 2);
 
		_settings_game.locale.units_force    = 2;
 
		_settings_game.locale.units_height   = Clamp(_old_units, 0, 2);
 
	}
 

	
 
	if (IsSavegameVersionBefore(SLV_VELOCITY_NAUTICAL)) {
 
		/* Match nautical velocity with land velocity units. */
 
		_settings_game.locale.units_velocity_nautical = _settings_game.locale.units_velocity;
 
	}
 

	
 
	if (IsSavegameVersionBefore(SLV_186)) {
 
		/* Move ObjectType from map to pool */
 
		for (auto t : Map::Iterate()) {
 
			if (IsTileType(t, MP_OBJECT)) {
 
				Object *o = Object::Get(t.m2());
 
				o->type = t.m5();