File diff r3046:6457665c9b5a → r3047:7f6140318561
industry_cmd.c
Show inline comments
 
@@ -1896,49 +1896,49 @@ const TileTypeProcs _tile_type_industry_
 
	ClickTile_Industry,					/* click_tile_proc */
 
	AnimateTile_Industry,				/* animate_tile_proc */
 
	TileLoop_Industry,					/* tile_loop_proc */
 
	ChangeTileOwner_Industry,		/* change_tile_owner_proc */
 
	GetProducedCargo_Industry,  /* get_produced_cargo_proc */
 
	NULL,												/* vehicle_enter_tile_proc */
 
	NULL,												/* vehicle_leave_tile_proc */
 
	GetSlopeTileh_Industry,			/* get_slope_tileh_proc */
 
};
 

	
 
static const SaveLoad _industry_desc[] = {
 
	SLE_CONDVAR(Industry, xy,					SLE_FILE_U16 | SLE_VAR_U32, 0, 5),
 
	SLE_CONDVAR(Industry, xy,					SLE_UINT32, 6, 255),
 
	SLE_CONDVAR(Industry, xy,					SLE_UINT32, 6, SL_MAX_VERSION),
 
	SLE_VAR(Industry,width,						SLE_UINT8),
 
	SLE_VAR(Industry,height,					SLE_UINT8),
 
	SLE_REF(Industry,town,						REF_TOWN),
 
	SLE_ARR(Industry,produced_cargo,  SLE_UINT8, 2),
 
	SLE_ARR(Industry,cargo_waiting,   SLE_UINT16, 2),
 
	SLE_ARR(Industry,production_rate, SLE_UINT8, 2),
 
	SLE_ARR(Industry,accepts_cargo,		SLE_UINT8, 3),
 
	SLE_VAR(Industry,prod_level,			SLE_UINT8),
 
	SLE_ARR(Industry,last_mo_production,SLE_UINT16, 2),
 
	SLE_ARR(Industry,last_mo_transported,SLE_UINT16, 2),
 
	SLE_ARR(Industry,pct_transported,SLE_UINT8, 2),
 
	SLE_ARR(Industry,total_production,SLE_UINT16, 2),
 
	SLE_ARR(Industry,total_transported,SLE_UINT16, 2),
 

	
 
	SLE_VAR(Industry,counter,					SLE_UINT16),
 

	
 
	SLE_VAR(Industry,type,						SLE_UINT8),
 
	SLE_VAR(Industry,owner,						SLE_UINT8),
 
	SLE_VAR(Industry,color_map,				SLE_UINT8),
 
	SLE_VAR(Industry,last_prod_year,	SLE_UINT8),
 
	SLE_VAR(Industry,was_cargo_delivered,SLE_UINT8),
 

	
 
	// reserve extra space in savegame here. (currently 32 bytes)
 
	SLE_CONDARR(NullStruct,null,SLE_FILE_U64 | SLE_VAR_NULL, 4, 2, 255),
 
	SLE_CONDARR(NullStruct,null,SLE_FILE_U64 | SLE_VAR_NULL, 4, 2, SL_MAX_VERSION),
 

	
 
	SLE_END()
 
};
 

	
 
static void Save_INDY(void)
 
{
 
	Industry *ind;
 

	
 
	// Write the vehicles
 
	FOR_ALL_INDUSTRIES(ind) {
 
		if (ind->xy != 0) {
 
			SlSetArrayIndex(ind->index);