src/station_cmd.cpp
branchcpp_gui
changeset 6285 187e3ef04cc9
parent 6268 4b5241e5dd10
child 6298 c30fe89622df
equal deleted inserted replaced
6284:45d0233e7d79 6285:187e3ef04cc9
   139  * Counts the numbers of tiles matching a specific type in the area around
   139  * Counts the numbers of tiles matching a specific type in the area around
   140  * @param tile the center tile of the 'count area'
   140  * @param tile the center tile of the 'count area'
   141  * @param type the type of tile searched for
   141  * @param type the type of tile searched for
   142  * @param industry when type == MP_INDUSTRY, the type of the industry,
   142  * @param industry when type == MP_INDUSTRY, the type of the industry,
   143  *                 in all other cases this parameter is ignored
   143  *                 in all other cases this parameter is ignored
   144  * @result the noumber of matching tiles around
   144  * @return the result the noumber of matching tiles around
   145  */
   145  */
   146 static int CountMapSquareAround(TileIndex tile, TileType type, IndustryType industry)
   146 static int CountMapSquareAround(TileIndex tile, TileType type, IndustryType industry)
   147 {
   147 {
   148 	int num = 0;
   148 	int num = 0;
   149 
   149 
  2762 	SLE_END()
  2762 	SLE_END()
  2763 };
  2763 };
  2764 
  2764 
  2765 static const SaveLoad _goods_desc[] = {
  2765 static const SaveLoad _goods_desc[] = {
  2766 	    SLE_VAR(GoodsEntry, waiting_acceptance, SLE_UINT16),
  2766 	    SLE_VAR(GoodsEntry, waiting_acceptance, SLE_UINT16),
       
  2767 	SLE_CONDVAR(GoodsEntry, unload_pending,     SLE_UINT16,                51, SL_MAX_VERSION),
  2767 	    SLE_VAR(GoodsEntry, days_since_pickup,  SLE_UINT8),
  2768 	    SLE_VAR(GoodsEntry, days_since_pickup,  SLE_UINT8),
  2768 	    SLE_VAR(GoodsEntry, rating,             SLE_UINT8),
  2769 	    SLE_VAR(GoodsEntry, rating,             SLE_UINT8),
  2769 	SLE_CONDVAR(GoodsEntry, enroute_from,       SLE_FILE_U8 | SLE_VAR_U16,  0, 6),
  2770 	SLE_CONDVAR(GoodsEntry, enroute_from,       SLE_FILE_U8 | SLE_VAR_U16,  0, 6),
  2770 	SLE_CONDVAR(GoodsEntry, enroute_from,       SLE_UINT16,                 7, SL_MAX_VERSION),
  2771 	SLE_CONDVAR(GoodsEntry, enroute_from,       SLE_UINT16,                 7, SL_MAX_VERSION),
  2771 	SLE_CONDVAR(GoodsEntry, enroute_from_xy,    SLE_UINT32,                44, SL_MAX_VERSION),
  2772 	SLE_CONDVAR(GoodsEntry, enroute_from_xy,    SLE_UINT32,                44, SL_MAX_VERSION),