From 5689b3dbda6b3e4adee2c20e32d06a9e5a158c07 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 13 Mar 2011 21:33:57 +0000 Subject: (svn r22246) -Fix: Process order window invalidations for specific orders in command-scope. --- src/order_gui.cpp | 3 ++- src/timetable_gui.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/order_gui.cpp b/src/order_gui.cpp index d23648383..b1889a511 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -835,8 +835,9 @@ public: break; default: - if (!gui_scope) break; if (data < 0) break; + + if (gui_scope) break; // only do this once; from command scope from = GB(data, 0, 8); to = GB(data, 8, 8); /* Moving an order. If one of these is INVALID_VEH_ORDER_ID, then diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index 791e3312e..7abe4f4f0 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -271,7 +271,8 @@ struct TimetableWindow : Window { break; default: { - if (!gui_scope) break; + if (gui_scope) break; // only do this once; from command scope + /* Moving an order. If one of these is INVALID_VEH_ORDER_ID, then * the order is being created / removed */ if (this->sel_index == -1) break; -- cgit v1.2.3-70-g09d2