diff options
author | tron <tron@openttd.org> | 2005-01-15 08:58:31 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-15 08:58:31 +0000 |
commit | 3279a7c9a26242f5f0a8e4b41ae6e2d9e24ee169 (patch) | |
tree | e70312993e66c5b848feb30831527cca401c08f8 /order_gui.c | |
parent | 7f7c6297f7bb6bb225741773a5438a916a91da08 (diff) | |
download | openttd-3279a7c9a26242f5f0a8e4b41ae6e2d9e24ee169.tar.xz |
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
Diffstat (limited to 'order_gui.c')
-rw-r--r-- | order_gui.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/order_gui.c b/order_gui.c index 208a561ad..9023f3feb 100644 --- a/order_gui.c +++ b/order_gui.c @@ -51,7 +51,7 @@ static void DrawOrdersWindow(Window *w) 1 << 8 | //full load 1 << 9 //unload ); - + //disable non-stop for non-trains if (v->type != VEH_Train) { w->disabled_state |= 1 << 6; @@ -435,7 +435,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e) case 6: /* non stop button */ OrderClick_Nonstop(w, v); break; - + case 7: /* goto button */ OrderClick_Goto(w, v); break; @@ -450,7 +450,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e) } } break; - + case WE_KEYPRESS: { Vehicle *v = GetVehicle(w->window_number); uint i; @@ -458,7 +458,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e) for(i = 0; i < lengthof(_order_keycodes); i++) { if (e->keypress.keycode == _order_keycodes[i]) { e->keypress.cont = false; - //see if the button is disabled + //see if the button is disabled if (!(HASBIT(w->disabled_state, (i + 4)))) { _order_button_proc[i](w, v); } @@ -561,7 +561,7 @@ void ShowOrdersWindow(Vehicle *v) DeleteWindowById(WC_VEHICLE_DETAILS, veh); _alloc_wnd_parent_num = veh; - + w = AllocateWindowDesc( (v->owner == _local_player) ? &_orders_desc : &_other_orders_desc); w->window_number = veh; |