diff options
author | rubidium <rubidium@openttd.org> | 2007-09-04 12:06:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-04 12:06:38 +0000 |
commit | c5cfb281ad92397784e81204f4679942e5463c45 (patch) | |
tree | e6b5e96fc5db5b625057e1eab560f1a6bb9c3e2a /src/newgrf_canal.cpp | |
parent | a0559dd89eae25d6ba12721b0240f869da97cc26 (diff) | |
download | openttd-c5cfb281ad92397784e81204f4679942e5463c45.tar.xz |
(svn r11042) -Fix [FS#1196]: so newgrf callbacks returned slightly wrong heights (height of nothern corner instead of height of lowest corner). Patch by frosch.
Diffstat (limited to 'src/newgrf_canal.cpp')
-rw-r--r-- | src/newgrf_canal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_canal.cpp b/src/newgrf_canal.cpp index 9a8fe7ea1..b49191de6 100644 --- a/src/newgrf_canal.cpp +++ b/src/newgrf_canal.cpp @@ -42,7 +42,7 @@ static uint32 CanalGetVariable(const ResolverObject *object, byte variable, byte switch (variable) { case 0x80: - return TileHeight(tile); + return GetTileZ(tile) / TILE_HEIGHT; case 0x81: return GetTerrainType(tile); |