diff options
author | rubidium <rubidium@openttd.org> | 2007-09-26 16:12:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-26 16:12:43 +0000 |
commit | 01edaeec578bddb73b4513baf9d8bfe5f9a886b0 (patch) | |
tree | 226af8de8514a96ed474dc9590f68e2c517a31d9 /src/map.h | |
parent | a85e18c92200590c84a6c3d3f60dd41f394cc0fe (diff) | |
download | openttd-01edaeec578bddb73b4513baf9d8bfe5f9a886b0.tar.xz |
(svn r11172) -Codechange: rewrite of town road building and addition of the possibility to clean up unconnected road bits during the local road reconstructions. Based on a patch by skidd13.
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -390,6 +390,18 @@ static inline TileIndexDiff TileOffsByDir(Direction dir) } /** + * Adds a DiagDir 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 TileAddByDiagDir(TileIndex tile, DiagDirection dir) +{ + return TILE_ADD(tile, TileOffsByDiagDir(dir)); +} + +/** * A callback function type for searching tiles. * * @param tile The tile to test |