Feature: Separate rail/road and sea/air velocity units, and add knots. (#10594)
This is achieved by packing vehicle type along with the velocity so that the string system can decode and pick the appropriate unit.
This commit is contained in:
@@ -2877,6 +2877,11 @@ bool AfterLoadGame()
|
||||
_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()) {
|
||||
|
||||
@@ -347,6 +347,8 @@ enum SaveLoadVersion : uint16 {
|
||||
SLV_NEWGRF_ROAD_STOPS, ///< 303 PR#10144 NewGRF road stops.
|
||||
SLV_LINKGRAPH_EDGES, ///< 304 PR#10314 Explicitly store link graph edges destination, PR#10471 int64 instead of uint64 league rating
|
||||
|
||||
SLV_VELOCITY_NAUTICAL, ///< 305 PR#10594 Separation of land and nautical velocity (knots!)
|
||||
|
||||
SL_MAX_VERSION, ///< Highest possible saveload version
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user