forked from mirror/OpenTTD
(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight)
This commit is contained in:
@@ -596,7 +596,7 @@ static void ShipController(Ship *v)
|
||||
dir = ShipGetNewDirection(v, gp.x, gp.y);
|
||||
v->x_pos = gp.x;
|
||||
v->y_pos = gp.y;
|
||||
v->z_pos = GetSlopeZ(gp.x, gp.y);
|
||||
v->z_pos = GetSlopePixelZ(gp.x, gp.y);
|
||||
|
||||
getout:
|
||||
v->UpdateViewport(true, true);
|
||||
@@ -644,7 +644,7 @@ CommandCost CmdBuildShip(TileIndex tile, DoCommandFlag flags, const Engine *e, u
|
||||
y = TileY(tile) * TILE_SIZE + TILE_SIZE / 2;
|
||||
v->x_pos = x;
|
||||
v->y_pos = y;
|
||||
v->z_pos = GetSlopeZ(x, y);
|
||||
v->z_pos = GetSlopePixelZ(x, y);
|
||||
|
||||
v->UpdateDeltaXY(v->direction);
|
||||
v->vehstatus = VS_HIDDEN | VS_STOPPED | VS_DEFPAL;
|
||||
|
Reference in New Issue
Block a user