mirror of https://github.com/OpenTTD/OpenTTD
(svn r22246) -Fix: Process order window invalidations for specific orders in command-scope.
parent
dd20823277
commit
5689b3dbda
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue