diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -573,7 +573,7 @@ static CommandCost CmdBuildRailWagon(Til v->x_pos = x; v->y_pos = y; - v->z_pos = GetSlopeZ(x, y); + v->z_pos = GetSlopePixelZ(x, y); v->owner = _current_company; v->track = TRACK_BIT_DEPOT; v->vehstatus = VS_HIDDEN | VS_DEFPAL; @@ -698,7 +698,7 @@ CommandCost CmdBuildRailVehicle(TileInde v->owner = _current_company; v->x_pos = x; v->y_pos = y; - v->z_pos = GetSlopeZ(x, y); + v->z_pos = GetSlopePixelZ(x, y); v->track = TRACK_BIT_DEPOT; v->vehstatus = VS_HIDDEN | VS_STOPPED | VS_DEFPAL; v->spritenum = rvi->image_index;