summaryrefslogtreecommitdiff
path: root/src/ship_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r--src/ship_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index bfb3b5674..fe9367881 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -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;