diff options
author | tron <tron@openttd.org> | 2005-01-05 13:32:03 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-05 13:32:03 +0000 |
commit | 67161506ad98a7636d3c9f141b5595481d079e93 (patch) | |
tree | b9a5829b3d37c53a2de48d1ef28960f41804f4dc /road_gui.c | |
parent | 2543158c8e0d105148bc38522fba43aa3428d76a (diff) | |
download | openttd-67161506ad98a7636d3c9f141b5595481d079e93.tar.xz |
(svn r1386) Move TileIndexDiff to map.h
Move _tileoffs_by_dir to map.[ch] and encapsulate it in TileOffsByDir()
Diffstat (limited to 'road_gui.c')
-rw-r--r-- | road_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/road_gui.c b/road_gui.c index 5d78fb621..c87b692a2 100644 --- a/road_gui.c +++ b/road_gui.c @@ -65,7 +65,7 @@ static void PlaceRoad_Tunnel(uint tile) static void BuildRoadOutsideStation(uint tile, int direction) { static const byte _roadbits_by_dir[4] = {2,1,8,4}; - tile += _tileoffs_by_dir[direction]; + tile += TileOffsByDir(direction); // if there is a roadpiece just outside of the station entrance, build a connecting route if (IS_TILETYPE(tile, MP_STREET) && !(_map5[tile]&0x20)) { DoCommandP(tile, _roadbits_by_dir[direction], 0, NULL, CMD_BUILD_ROAD); |