summaryrefslogtreecommitdiff
path: root/water_map.h
diff options
context:
space:
mode:
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);