Feature #6610: Allow towns to build houses on road turns (#6758)

This commit is contained in:
Pavel Stupnikov
2018-04-29 00:47:36 +03:00
committed by frosch
parent cfe6a8ea4f
commit 8d8b9a026a
2 changed files with 49 additions and 6 deletions

View File

@@ -362,6 +362,18 @@ static inline TileIndexDiff TileOffsByDir(Direction dir)
return ToTileIndexDiff(_tileoffs_by_dir[dir]);
}
/**
* Adds a Direction to a tile.
*
* @param tile The current tile
* @param dir The direction in which we want to step
* @return the moved tile
*/
static inline TileIndex TileAddByDir(TileIndex tile, Direction dir)
{
return TILE_ADD(tile, TileOffsByDir(dir));
}
/**
* Adds a DiagDir to a tile.
*