Erase queued commands when another command is about to be queued.

This commit is contained in:
Juanjo
2013-10-14 19:24:30 +00:00
committed by pelya
parent 60a7ac9f3c
commit 604205045f
6 changed files with 6 additions and 0 deletions

View File

@@ -467,6 +467,7 @@ struct BuildRoadToolbarWindow : Window {
virtual void OnPlaceObject(Point pt, TileIndex tile)
{
EraseQueuedTouchCommand();
_remove_button_clicked = this->IsWidgetLowered(WID_ROT_REMOVE);
_one_way_button_clicked = this->IsWidgetLowered(WID_ROT_ONE_WAY);
switch (this->last_started_action) {