diff options
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/afterload.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index f83979bd4..8a87dcc40 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -458,8 +458,8 @@ static uint FixVehicleInclination(Vehicle *v, Direction dir) byte entry_z = GetSlopePixelZ(entry_x, entry_y); /* Compute middle of the tile. */ - int middle_x = (v->x_pos & ~TILE_UNIT_MASK) + HALF_TILE_SIZE; - int middle_y = (v->y_pos & ~TILE_UNIT_MASK) + HALF_TILE_SIZE; + int middle_x = (v->x_pos & ~TILE_UNIT_MASK) + TILE_SIZE / 2; + int middle_y = (v->y_pos & ~TILE_UNIT_MASK) + TILE_SIZE / 2; byte middle_z = GetSlopePixelZ(middle_x, middle_y); /* middle_z == entry_z, no height change. */ |