(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.

This commit is contained in:
rubidium
2007-09-04 12:06:38 +00:00
parent cadf412dcd
commit 222e105ec7
3 changed files with 7 additions and 3 deletions

View File

@@ -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);