Mercurial > hg > openttd
changeset 17170:b82bc629ec08 draft
(svn r21909) -Fix: some missing spaces
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 26 Jan 2011 08:14:36 +0000 |
parents | a221c2a28466 |
children | 7f703880d137 |
files | src/airport_gui.cpp src/cargopacket.cpp src/hotkeys.cpp src/industry_gui.cpp src/order_gui.cpp src/timetable_gui.cpp src/vehicle.cpp |
diffstat | 7 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -551,7 +551,7 @@ NWidget(NWID_VSCROLLBAR, COLOUR_GREY, BAIRW_SCROLLBAR), EndContainer(), NWidget(NWID_HORIZONTAL), - NWidget(WWT_PUSHARROWBTN, COLOUR_GREY, BAIRW_LAYOUT_DECREASE), SetMinimalSize(12, 0),SetDataTip(AWV_DECREASE, STR_NULL), + NWidget(WWT_PUSHARROWBTN, COLOUR_GREY, BAIRW_LAYOUT_DECREASE), SetMinimalSize(12, 0), SetDataTip(AWV_DECREASE, STR_NULL), NWidget(WWT_LABEL, COLOUR_GREY, BAIRW_LAYOUT_NUM), SetResize(1, 0), SetFill(1, 0), SetDataTip(STR_BLACK_STRING, STR_NULL), NWidget(WWT_PUSHARROWBTN, COLOUR_GREY, BAIRW_LAYOUT_INCREASE), SetMinimalSize(12, 0), SetDataTip(AWV_INCREASE, STR_NULL), EndContainer(),
--- a/src/cargopacket.cpp +++ b/src/cargopacket.cpp @@ -276,7 +276,7 @@ max_move -= cp->count; this->packets.erase(it++); static_cast<Tinst *>(this)->RemoveFromCache(cp); - switch(mta) { + switch (mta) { case MTA_FINAL_DELIVERY: payment->PayFinalDelivery(cp, cp->count); delete cp;
--- a/src/hotkeys.cpp +++ b/src/hotkeys.cpp @@ -73,7 +73,7 @@ } } if (end - start == 1) { - if (*start >= 'a' && *start <= 'z') return *start - ('a' - 'A'); + if (*start >= 'a' && *start <= 'z') return *start - ('a'-'A'); return *start; } return 0;
--- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -796,7 +796,7 @@ virtual void SetStringParameters(int widget) const { - if (widget== IVW_CAPTION) SetDParam(0, this->window_number); + if (widget == IVW_CAPTION) SetDParam(0, this->window_number); } virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize)
--- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -1428,7 +1428,7 @@ static Hotkey<OrdersWindow> order_hotkeys[]; }; -Hotkey<OrdersWindow> OrdersWindow::order_hotkeys[]= { +Hotkey<OrdersWindow> OrdersWindow::order_hotkeys[] = { Hotkey<OrdersWindow>('D', "skip", 0, &OrdersWindow::OrderClick_Skip), Hotkey<OrdersWindow>('F', "delete", 0, &OrdersWindow::OrderClick_Delete), Hotkey<OrdersWindow>('G', "goto", 0, &OrdersWindow::OrderClick_Goto),
--- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -395,7 +395,7 @@ TextColour colour = (i == selected) ? TC_WHITE : TC_BLACK; if (order->IsType(OT_CONDITIONAL)) { string = STR_TIMETABLE_NO_TRAVEL; - } else if(order->IsType(OT_AUTOMATIC)) { + } else if (order->IsType(OT_AUTOMATIC)) { string = STR_TIMETABLE_NOT_TIMETABLEABLE; colour = ((i == selected) ? TC_SILVER : TC_GREY) | TC_NO_SHADE; } else if (order->travel_time == 0) {
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2242,7 +2242,7 @@ Order *Vehicle::GetNextManualOrder(int index) const { Order *order = this->GetOrder(index); - while(order != NULL && order->IsType(OT_AUTOMATIC)) { + while (order != NULL && order->IsType(OT_AUTOMATIC)) { order = order->next; } return order;