Changeset - r24932:2b074f2b286f
[Not reviewed]
master
0 1 0
frosch - 3 years ago 2021-02-23 21:56:01
frosch@openttd.org
Fix: vehicle-cursor size-limit did not account for the interface zoom level.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle_gui.cpp
Show inline comments
 
@@ -3151,7 +3151,7 @@ void SetMouseCursorVehicle(const Vehicle
 
	_cursor.sprite_count = 0;
 
	int total_width = 0;
 
	for (; v != nullptr; v = v->HasArticulatedPart() ? v->GetNextArticulatedPart() : nullptr) {
 
		if (total_width >= 2 * (int)VEHICLEINFO_FULL_VEHICLE_WIDTH) break;
 
		if (total_width >= ScaleGUITrad(2 * (int)VEHICLEINFO_FULL_VEHICLE_WIDTH)) break;
 

	
 
		PaletteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v);
 
		VehicleSpriteSeq seq;
0 comments (0 inline, 0 general)