Erase queued commands when another command is about to be queued.
This commit is contained in:
@@ -655,6 +655,7 @@ struct ScenarioEditorLandscapeGenerationWindow : Window {
|
||||
|
||||
virtual void OnPlaceObject(Point pt, TileIndex tile)
|
||||
{
|
||||
EraseQueuedTouchCommand();
|
||||
switch (this->last_user_action) {
|
||||
case WID_ETT_DEMOLISH: // Demolish aka dynamite button
|
||||
PlaceProc_DemolishArea(tile);
|
||||
|
||||
Reference in New Issue
Block a user