equal
deleted
inserted
replaced
829 if (tileh == SLOPE_FLAT) return z; |
829 if (tileh == SLOPE_FLAT) return z; |
830 if (GetRoadType(ti->tile) == ROAD_NORMAL) { |
830 if (GetRoadType(ti->tile) == ROAD_NORMAL) { |
831 uint f = GetRoadFoundation(tileh, GetRoadBits(ti->tile)); |
831 uint f = GetRoadFoundation(tileh, GetRoadBits(ti->tile)); |
832 |
832 |
833 if (f != 0) { |
833 if (f != 0) { |
834 if (f < 15) return z + 8; // leveled foundation |
834 if (f < 15) return z + TILE_HEIGHT; // leveled foundation |
835 tileh = _inclined_tileh[f - 15]; // inclined foundation |
835 tileh = _inclined_tileh[f - 15]; // inclined foundation |
836 } |
836 } |
837 return z + GetPartialZ(ti->x & 0xF, ti->y & 0xF, tileh); |
837 return z + GetPartialZ(ti->x & 0xF, ti->y & 0xF, tileh); |
838 } else { |
838 } else { |
839 return z + 8; |
839 return z + TILE_HEIGHT; |
840 } |
840 } |
841 } |
841 } |
842 |
842 |
843 static Slope GetSlopeTileh_Road(TileIndex tile, Slope tileh) |
843 static Slope GetSlopeTileh_Road(TileIndex tile, Slope tileh) |
844 { |
844 { |