Add support for loading trunk savegames versions 293 - 299 (12.0)

Use modified upstream saveload implementation for these versions
Re-arrange headers to support multiple saveload implementations
This commit is contained in:
Jonathan G Rennison
2021-11-01 18:33:39 +00:00
parent c6f0559ad4
commit d1f1a6942a
88 changed files with 11154 additions and 511 deletions

View File

@@ -25,7 +25,7 @@
#include "newgrf_cache_check.h"
#include "landscape.h"
#include "network/network.h"
#include "saveload/saveload.h"
#include "saveload/saveload_common.h"
#include <list>
#include <map>
#include <unordered_map>
@@ -240,6 +240,11 @@ extern void FixOldVehicles();
struct GRFFile;
namespace upstream_sl {
class SlVehicleCommon;
class SlVehicleDisaster;
}
/** %Vehicle data structure. */
struct Vehicle : VehiclePool::PoolItem<&_vehicle_pool>, BaseVehicle, BaseConsist {
private:
@@ -258,6 +263,9 @@ public:
friend void AfterLoadVehicles(bool part_of_load); ///< So we can set the #previous and #first pointers while loading
friend bool LoadOldVehicle(LoadgameState *ls, int num); ///< So we can set the proper next pointer while loading
friend upstream_sl::SlVehicleCommon;
friend upstream_sl::SlVehicleDisaster;
static void PreCleanPool();
TileIndex tile; ///< Current tile index