mirror of https://github.com/OpenTTD/OpenTTD
(svn r20142) -Fix [FS#3880]: Ships were not marked as dirty when stopping inside a depot.
parent
88830a24ec
commit
8858729ae7
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue