equal
deleted
inserted
replaced
38 * Check how much cargo this tile accepts. |
38 * Check how much cargo this tile accepts. |
39 * It creates a radius around the tile and adds up all acceptance of this |
39 * It creates a radius around the tile and adds up all acceptance of this |
40 * cargo and returns that value. |
40 * cargo and returns that value. |
41 * @pre tile is always positive and smaller than AIMap::GetMapSize(). |
41 * @pre tile is always positive and smaller than AIMap::GetMapSize(). |
42 * @param tile the tile to check on. |
42 * @param tile the tile to check on. |
|
43 * @param cargo_type the cargo to check the acceptance of. |
43 * @return value below 8 means no acceptance; the more the better. |
44 * @return value below 8 means no acceptance; the more the better. |
44 */ |
45 */ |
45 static int32 GetCargoAcceptance(TileIndex tile, CargoID cargo_type); |
46 static int32 GetCargoAcceptance(TileIndex tile, CargoID cargo_type); |
46 }; |
47 }; |
47 |
48 |