summaryrefslogtreecommitdiff
path: root/water_map.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-09-05 23:21:41 +0000
committerDarkvater <darkvater@openttd.org>2006-09-05 23:21:41 +0000
commit80814dbb1d01f651ba7c60547dc1b52c1c209378 (patch)
treef2f14fca9ac095b0bf6b46615035b8c207e3ce66 /water_map.h
parent516d412a77de7fb3d2278515d59a0c46bb9b461b (diff)
downloadopenttd-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 'water_map.h')
-rw-r--r--water_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/water_map.h b/water_map.h
index 7a232ff74..e449c104d 100644
--- a/water_map.h
+++ b/water_map.h
@@ -132,7 +132,7 @@ static inline void MakeLockTile(TileIndex t, Owner o, byte section)
static inline void MakeLock(TileIndex t, Owner o, DiagDirection d)
{
- TileIndexDiff delta = TileOffsByDir(d);
+ TileIndexDiff delta = TileOffsByDiagDir(d);
MakeLockTile(t, o, LOCK_MIDDLE + d);
MakeLockTile(t - delta, o, LOCK_LOWER + d);