diff options
author | Darkvater <darkvater@openttd.org> | 2006-09-05 23:21:41 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-09-05 23:21:41 +0000 |
commit | 80814dbb1d01f651ba7c60547dc1b52c1c209378 (patch) | |
tree | f2f14fca9ac095b0bf6b46615035b8c207e3ce66 /station_map.h | |
parent | 516d412a77de7fb3d2278515d59a0c46bb9b461b (diff) | |
download | openttd-80814dbb1d01f651ba7c60547dc1b52c1c209378.tar.xz |
(svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because it accepts
DiagDirections, and add TileOffsByDir that handles Directions.
-Codechange: Make the treeloop use TileOffsByDir().
Diffstat (limited to 'station_map.h')
-rw-r--r-- | station_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/station_map.h b/station_map.h index ad33a5efb..912cfc572 100644 --- a/station_map.h +++ b/station_map.h @@ -293,7 +293,7 @@ static inline void MakeBuoy(TileIndex t, StationID sid) static inline void MakeDock(TileIndex t, Owner o, StationID sid, DiagDirection d) { MakeStation(t, o, sid, GFX_DOCK_BASE + d); - MakeStation(t + TileOffsByDir(d), o, sid, GFX_DOCK_BASE_WATER_PART + DiagDirToAxis(d)); + MakeStation(t + TileOffsByDiagDir(d), o, sid, GFX_DOCK_BASE_WATER_PART + DiagDirToAxis(d)); } static inline void MakeOilrig(TileIndex t, StationID sid) |