equal
deleted
inserted
replaced
34 int32 AITile::GetSlope(TileIndex tile) |
34 int32 AITile::GetSlope(TileIndex tile) |
35 { |
35 { |
36 /* Outside of the map */ |
36 /* Outside of the map */ |
37 if (tile >= ::MapSize()) return 0; |
37 if (tile >= ::MapSize()) return 0; |
38 |
38 |
39 return GetTileSlope(tile, NULL); |
39 return ::GetTileSlope(tile, NULL); |
|
40 } |
|
41 |
|
42 int32 AITile::GetHeight(TileIndex tile) |
|
43 { |
|
44 /* Outside of the map */ |
|
45 if (tile >= ::MapSize()) return 0; |
|
46 |
|
47 return ::TileHeight(tile); |
40 } |
48 } |
41 |
49 |
42 int32 AITile::GetCargoAcceptance(TileIndex tile, CargoID cargo_type, uint width, uint height, uint rad) |
50 int32 AITile::GetCargoAcceptance(TileIndex tile, CargoID cargo_type, uint width, uint height, uint rad) |
43 { |
51 { |
44 /* Outside of the map */ |
52 /* Outside of the map */ |