mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r10656) -Fix [FS#1068]: GetPartialZ returned wrong value for SLOPE_STEEP_E (frosch)
This commit is contained in:
parent
c4e47c07c9
commit
3ce600a644
|
@ -152,7 +152,7 @@ uint GetPartialZ(int x, int y, Slope corners)
|
|||
break;
|
||||
|
||||
case SLOPE_STEEP_E:
|
||||
z = 1 + (((x ^ 0xF) + (y ^ 0xF)) >> 1);
|
||||
z = 1 + (((x ^ 0xF) + y) >> 1);
|
||||
break;
|
||||
|
||||
default: break;
|
||||
|
|
Loading…
Reference in New Issue