mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-21 19:32:54 +01:00
Add: Overlay cargo icon in vehicle/depot list when holding shift+ctrl. (#12938)
This commit is contained in:
@@ -44,6 +44,7 @@ void DrawShipImage(const Vehicle *v, const Rect &r, VehicleID selection, EngineI
|
||||
int y = ScaleSpriteTrad(-1) + CenterBounds(r.top, r.bottom, 0);
|
||||
|
||||
seq.Draw(x, y, GetVehiclePalette(v), false);
|
||||
if (v->cargo_cap > 0) DrawCargoIconOverlay(x, y, v->cargo_type);
|
||||
|
||||
if (v->index == selection) {
|
||||
x += x_offs;
|
||||
|
||||
Reference in New Issue
Block a user