TBTR: Create template window: Fix vehicle unselection on drag abort.
This commit is contained in:
@@ -279,7 +279,10 @@ public:
|
|||||||
|
|
||||||
virtual void OnPlaceObjectAbort()
|
virtual void OnPlaceObjectAbort()
|
||||||
{
|
{
|
||||||
|
this->sel = INVALID_VEHICLE;
|
||||||
|
this->vehicle_over = INVALID_VEHICLE;
|
||||||
this->RaiseButtons();
|
this->RaiseButtons();
|
||||||
|
this->SetDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void DrawWidget(const Rect &r, int widget) const
|
virtual void DrawWidget(const Rect &r, int widget) const
|
||||||
|
Reference in New Issue
Block a user