File diff r25773:457e167f3c9e → r25774:14ee6e7f4ecc
src/saveload/station_sl.cpp
Show inline comments
 
@@ -482,16 +482,13 @@ static const SaveLoad _old_station_desc[
 

	
 
	SLEG_STRUCTLIST("goods", SlStationGoods),
 
	SLEG_CONDSTRUCTLIST("speclist", SlStationSpecList,                           SLV_27, SL_MAX_VERSION),
 
};
 

	
 
struct STNSChunkHandler : ChunkHandler {
 
	STNSChunkHandler() : ChunkHandler('STNS', CH_READONLY)
 
	{
 
		this->fix_pointers = true;
 
	}
 
	STNSChunkHandler() : ChunkHandler('STNS', CH_READONLY) {}
 

	
 
	void Load() const override
 
	{
 
		const std::vector<SaveLoad> slt = SlCompatTableHeader(_old_station_desc, _old_station_sl_compat);
 

	
 
		_cargo_source_xy = 0;
 
@@ -656,16 +653,13 @@ static const SaveLoad _station_desc[] = 
 
	SLEG_STRUCT("normal", SlStationNormal),
 
	SLEG_STRUCT("waypoint", SlStationWaypoint),
 
	SLEG_CONDSTRUCTLIST("speclist", SlStationSpecList, SLV_27, SL_MAX_VERSION),
 
};
 

	
 
struct STNNChunkHandler : ChunkHandler {
 
	STNNChunkHandler() : ChunkHandler('STNN', CH_TABLE)
 
	{
 
		this->fix_pointers = true;
 
	}
 
	STNNChunkHandler() : ChunkHandler('STNN', CH_TABLE) {}
 

	
 
	void Save() const override
 
	{
 
		SlTableHeader(_station_desc);
 

	
 
		/* Write the stations */
 
@@ -702,16 +696,13 @@ struct STNNChunkHandler : ChunkHandler {
 
			SlObject(bst, _station_desc);
 
		}
 
	}
 
};
 

	
 
struct ROADChunkHandler : ChunkHandler {
 
	ROADChunkHandler() : ChunkHandler('ROAD', CH_TABLE)
 
	{
 
		this->fix_pointers = true;
 
	}
 
	ROADChunkHandler() : ChunkHandler('ROAD', CH_TABLE) {}
 

	
 
	void Save() const override
 
	{
 
		SlTableHeader(_roadstop_desc);
 

	
 
		for (RoadStop *rs : RoadStop::Iterate()) {