* Gets the TileHeight (height of north corner) of a tile as of current terraforming progress. * * @param ts TerraformerState. * @param tile Tile. * @return TileHeight. */
| 43 | * @return TileHeight. |
| 44 | */ |
| 45 | static int TerraformGetHeightOfTile(const TerraformerState *ts, TileIndex tile) |
| 46 | { |
| 47 | TileIndexToHeightMap::const_iterator it = ts->tile_to_new_height.find(tile); |
| 48 | return it != ts->tile_to_new_height.end() ? it->second : TileHeight(tile); |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Stores the TileHeight (height of north corner) of a tile in a TerraformerState. |
no test coverage detected