Use SoftClamp in DrawAircraftEngine, DrawShipEngine, DrawTrainEngine

This commit is contained in:
Jonathan G Rennison
2023-04-12 19:34:55 +01:00
parent 9521e7ef2b
commit 6e091c78b8
3 changed files with 3 additions and 3 deletions

View File

@@ -237,7 +237,7 @@ void DrawAircraftEngine(int left, int right, int preferred_x, int y, EngineID en
GetAircraftIcon(engine, image_type, &seq);
Rect16 rect = seq.GetBounds();
preferred_x = Clamp(preferred_x,
preferred_x = SoftClamp(preferred_x,
left - UnScaleGUI(rect.left),
right - UnScaleGUI(rect.right));