mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-22 04:59:32 +01:00
(svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs).
This commit is contained in:
parent
9d8fa486af
commit
acafc26426
@ -206,7 +206,7 @@ static void CreateVehicleGroupWindow(Window *w)
|
||||
w->widget[GRP_WIDGET_LIST_VEHICLE].data = (w->vscroll2.cap << 8) + 1;
|
||||
|
||||
switch (gv->vehicle_type) {
|
||||
default: NOT_REACHED(); break;
|
||||
default: NOT_REACHED();
|
||||
case VEH_TRAIN: gv->_sorting = &_sorting.train; break;
|
||||
case VEH_ROAD: gv->_sorting = &_sorting.roadveh; break;
|
||||
case VEH_SHIP: gv->_sorting = &_sorting.ship; break;
|
||||
@ -398,7 +398,7 @@ static void GroupWndProc(Window *w, WindowEvent *e)
|
||||
w->widget[GRP_WIDGET_CAPTION].data = STR_A009_AIRCRAFT;
|
||||
w->widget[GRP_WIDGET_REPLACE_PROTECTION].data = SPR_GROUP_REPLACE_OFF_AIRCRAFT;
|
||||
break;
|
||||
default: NOT_REACHED(); break;
|
||||
default: NOT_REACHED();
|
||||
}
|
||||
} else {
|
||||
const Group *g = GetGroup(gv->group_sel);
|
||||
@ -423,7 +423,7 @@ static void GroupWndProc(Window *w, WindowEvent *e)
|
||||
w->widget[GRP_WIDGET_CAPTION].data = STR_GROUP_AIRCRAFTS_CAPTION;
|
||||
w->widget[GRP_WIDGET_REPLACE_PROTECTION].data = (g->replace_protection) ? SPR_GROUP_REPLACE_ON_AIRCRAFT : SPR_GROUP_REPLACE_OFF_AIRCRAFT;
|
||||
break;
|
||||
default: NOT_REACHED(); break;
|
||||
default: NOT_REACHED();
|
||||
}
|
||||
}
|
||||
|
||||
@ -453,7 +453,7 @@ static void GroupWndProc(Window *w, WindowEvent *e)
|
||||
str_all_veh = STR_GROUP_ALL_AIRCRAFTS;
|
||||
str_no_group_veh = STR_GROUP_DEFAULT_AIRCRAFTS;
|
||||
break;
|
||||
default: NOT_REACHED(); break;
|
||||
default: NOT_REACHED();
|
||||
}
|
||||
DrawString(10, y1, str_all_veh, IsAllGroupID(gv->group_sel) ? TC_WHITE : TC_BLACK);
|
||||
|
||||
|
@ -435,13 +435,13 @@ static void ShowRejectOrAcceptNews(const Station *st, uint num_items, CargoID *c
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of the cargo types being produced around the tile (in a rectangle).
|
||||
* @param produced: Destination array of produced cargo
|
||||
* @param tile: Center of the search area
|
||||
* @param w: Width of the center
|
||||
* @param h: Height of the center
|
||||
* @param rad: Radius of the search area
|
||||
*/
|
||||
* Get a list of the cargo types being produced around the tile (in a rectangle).
|
||||
* @param produced: Destination array of produced cargo
|
||||
* @param tile: Center of the search area
|
||||
* @param w: Width of the center
|
||||
* @param h: Height of the center
|
||||
* @param rad: Radius of the search area
|
||||
*/
|
||||
void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile,
|
||||
int w, int h, int rad)
|
||||
{
|
||||
@ -484,13 +484,13 @@ void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile,
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of the cargo types that are accepted around the tile.
|
||||
* @param accepts: Destination array of accepted cargo
|
||||
* @param tile: Center of the search area
|
||||
* @param w: Width of the center
|
||||
* @param h: Height of the center
|
||||
* @param rad: Radius of the rectangular search area
|
||||
*/
|
||||
* Get a list of the cargo types that are accepted around the tile.
|
||||
* @param accepts: Destination array of accepted cargo
|
||||
* @param tile: Center of the search area
|
||||
* @param w: Width of the center
|
||||
* @param h: Height of the center
|
||||
* @param rad: Radius of the rectangular search area
|
||||
*/
|
||||
void GetAcceptanceAroundTiles(AcceptedCargo accepts, TileIndex tile,
|
||||
int w, int h, int rad)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user