(svn r23504) -Feature: Aircraft range.

This commit is contained in:
michi_cc
2011-12-13 00:43:35 +00:00
parent 948f77eac3
commit 957b643ae6
17 changed files with 176 additions and 18 deletions

View File

@@ -231,8 +231,9 @@
* 164 23290
* 165 23304
* 166 23415
* 167 23504
*/
extern const uint16 SAVEGAME_VERSION = 166; ///< Current savegame version of OpenTTD.
extern const uint16 SAVEGAME_VERSION = 167; ///< Current savegame version of OpenTTD.
SavegameType _savegame_type; ///< type of savegame we are loading

View File

@@ -434,7 +434,7 @@ void AfterLoadVehicles(bool part_of_load)
rotor->cur_image = GetRotorImage(Aircraft::From(v), EIT_ON_MAP);
}
UpdateAircraftCache(Aircraft::From(v));
UpdateAircraftCache(Aircraft::From(v), true);
}
break;
default: break;
@@ -745,6 +745,7 @@ const SaveLoad *GetVehicleDescription(VehicleType vt)
SLE_CONDVAR(Aircraft, number_consecutive_turns, SLE_UINT8, 2, SL_MAX_VERSION),
SLE_CONDVAR(Aircraft, turn_counter, SLE_UINT8, 136, SL_MAX_VERSION),
SLE_CONDVAR(Aircraft, flags, SLE_UINT8, 167, SL_MAX_VERSION),
SLE_CONDNULL(13, 2, 143), // old reserved space