changeset 17491:9314683faeb2 draft

(svn r22246) -Fix: Process order window invalidations for specific orders in command-scope.
author frosch <frosch@openttd.org>
date Sun, 13 Mar 2011 21:33:57 +0000
parents 78c33eb4b741
children b50ba9cf01a9
files src/order_gui.cpp src/timetable_gui.cpp
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -835,8 +835,9 @@
 				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
--- a/src/timetable_gui.cpp
+++ b/src/timetable_gui.cpp
@@ -271,7 +271,8 @@
 				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;