Changeset - r14413:90631f9a1898
[Not reviewed]
master
0 2 0
rubidium - 15 years ago 2010-02-01 12:43:28
rubidium@openttd.org
(svn r18980) -Codechange: preceeding -> preceding (spelling)
2 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/order_gui.cpp
Show inline comments
 
@@ -773,15 +773,15 @@ public:
 
				VehicleOrderID from = GB(data, 0, 8);
 
				VehicleOrderID to   = GB(data, 8, 8);
 

	
 
				if (from == to) break; // no need to change anything
 

	
 
				if (from != this->selected_order) {
 
					/* Moving from preceeding order? */
 
					/* Moving from preceding order? */
 
					this->selected_order -= (int)(from <= this->selected_order);
 
					/* Moving to   preceeding order? */
 
					/* Moving to   preceding order? */
 
					this->selected_order += (int)(to   <= this->selected_order);
 
					break;
 
				}
 

	
 
				/* Now we are modifying the selected order */
 
				if (to == INVALID_VEH_ORDER_ID) {
src/timetable_gui.cpp
Show inline comments
 
@@ -274,15 +274,15 @@ struct TimetableWindow : Window {
 
				VehicleOrderID selected_order = (this->sel_index + 1) / 2;
 
				if (selected_order == old_num_orders) selected_order = 0; // when last travel time is selected, it belongs to order 0
 

	
 
				bool travel = HasBit(this->sel_index, 0);
 

	
 
				if (from != selected_order) {
 
					/* Moving from preceeding order? */
 
					/* Moving from preceding order? */
 
					selected_order -= (int)(from <= selected_order);
 
					/* Moving to   preceeding order? */
 
					/* Moving to   preceding order? */
 
					selected_order += (int)(to   <= selected_order);
 
				} else {
 
					/* Now we are modifying the selected order */
 
					if (to == INVALID_VEH_ORDER_ID) {
 
						/* Deleting selected order */
 
						this->DeleteChildWindows();
0 comments (0 inline, 0 general)