TBTR: Raise clone buttons when vehicle pick aborted.

This commit is contained in:
Jonathan G Rennison
2016-02-15 00:24:02 +00:00
parent de7f1c1168
commit d9a48a2b5e
2 changed files with 10 additions and 0 deletions

View File

@@ -273,6 +273,11 @@ public:
return true; return true;
} }
virtual void OnPlaceObjectAbort()
{
this->RaiseButtons();
}
virtual void DrawWidget(const Rect &r, int widget) const virtual void DrawWidget(const Rect &r, int widget) const
{ {
switch(widget) { switch(widget) {

View File

@@ -490,6 +490,11 @@ public:
return true; return true;
} }
virtual void OnPlaceObjectAbort()
{
this->RaiseButtons();
}
virtual void OnDropdownSelect(int widget, int index) virtual void OnDropdownSelect(int widget, int index)
{ {
RailType temp = (RailType) index; RailType temp = (RailType) index;