File diff r25773:457e167f3c9e → r25774:14ee6e7f4ecc
src/saveload/misc_sl.cpp
Show inline comments
 
@@ -87,28 +87,25 @@ static const SaveLoad _date_desc[] = {
 
	    SLEG_VAR("trees_tick_counter",     _trees_tick_ctr,         SLE_UINT8),
 
	SLEG_CONDVAR("pause_mode",             _pause_mode,             SLE_UINT8,                   SLV_4, SL_MAX_VERSION),
 
};
 

	
 
static const SaveLoad _date_check_desc[] = {
 
	SLEG_CONDVAR("date", _load_check_data.current_date,  SLE_FILE_U16 | SLE_VAR_I32,  SL_MIN_VERSION,  SLV_31),
 
	SLEG_CONDVAR("date", _load_check_data.current_date,  SLE_INT32,                  SLV_31, SL_MAX_VERSION),
 
};
 

	
 
/* Save load date related variables as well as persistent tick counters
 
 * XXX: currently some unrelated stuff is just put here */
 
struct DATEChunkHandler : ChunkHandler {
 
	DATEChunkHandler() : ChunkHandler('DATE', CH_TABLE)
 
	{
 
		this->load_check = true;
 
	}
 
	DATEChunkHandler() : ChunkHandler('DATE', CH_TABLE) {}
 

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

	
 
		SlSetArrayIndex(0);
 
		SlGlobList(_date_desc);
 
	}
 

	
 
	void LoadCommon(const SaveLoadTable &slt, const SaveLoadCompatTable &slct) const
 
	{
 
		const std::vector<SaveLoad> oslt = SlCompatTableHeader(slt, slct);