Fix vehicles leaving dots behind in viewport map mode
This commit is contained in:
@@ -2064,7 +2064,7 @@ void ViewportMapDrawVehicles(DrawPixelInfo *dpi, Viewport *vp)
|
||||
|
||||
while (v != nullptr) {
|
||||
if (!(v->vehstatus & (VS_HIDDEN | VS_UNCLICKABLE)) && (v->type != VEH_EFFECT)) {
|
||||
Point pt = RemapCoords(v->x_pos, v->y_pos, v->z_pos);
|
||||
Point pt = RemapCoords(v->x_pos + v->x_offs, v->y_pos + v->y_offs, v->z_pos);
|
||||
if (pt.x >= l && pt.x < r && pt.y >= t && pt.y < b) {
|
||||
const int pixel_x = UnScaleByZoomLower(pt.x - l, dpi->zoom);
|
||||
const int pixel_y = UnScaleByZoomLower(pt.y - t, dpi->zoom);
|
||||
|
Reference in New Issue
Block a user