mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: yet another place where the vehicle-cursor did not account for the interface zoom level.
This commit is contained in:
parent
ef4cec9382
commit
d236c57600
|
@ -3171,7 +3171,7 @@ void SetMouseCursorVehicle(const Vehicle *v, EngineImageType image_type)
|
|||
total_width += GetSingleVehicleWidth(v, image_type);
|
||||
}
|
||||
|
||||
int offs = ((int)VEHICLEINFO_FULL_VEHICLE_WIDTH - total_width) / 2;
|
||||
int offs = (ScaleGUITrad(VEHICLEINFO_FULL_VEHICLE_WIDTH) - total_width) / 2;
|
||||
if (rtl) offs = -offs;
|
||||
for (uint i = 0; i < _cursor.sprite_count; ++i) {
|
||||
_cursor.sprite_pos[i].x += offs;
|
||||
|
|
Loading…
Reference in New Issue