mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-16 19:19:09 +00:00
(svn r20142) -Fix [FS#3880]: Ships were not marked as dirty when stopping inside a depot.
This commit is contained in:
@@ -1072,11 +1072,14 @@ void VehicleEnterDepot(Vehicle *v)
|
|||||||
SetWindowClassesDirty(WC_ROADVEH_LIST);
|
SetWindowClassesDirty(WC_ROADVEH_LIST);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VEH_SHIP:
|
case VEH_SHIP: {
|
||||||
SetWindowClassesDirty(WC_SHIPS_LIST);
|
SetWindowClassesDirty(WC_SHIPS_LIST);
|
||||||
Ship::From(v)->state = TRACK_BIT_DEPOT;
|
Ship *ship = Ship::From(v);
|
||||||
RecalcShipStuff(Ship::From(v));
|
ship->state = TRACK_BIT_DEPOT;
|
||||||
|
ship->UpdateViewport(true, true);
|
||||||
|
SetWindowDirty(WC_VEHICLE_DEPOT, v->tile);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case VEH_AIRCRAFT:
|
case VEH_AIRCRAFT:
|
||||||
SetWindowClassesDirty(WC_AIRCRAFT_LIST);
|
SetWindowClassesDirty(WC_AIRCRAFT_LIST);
|
||||||
|
Reference in New Issue
Block a user