mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r12645) -Codechange: a bit of code-style cleanup
This commit is contained in:
parent
2ac6af4e48
commit
f484b2e1c7
@ -175,7 +175,7 @@ static void BuildAirportPickerWndProc(Window *w, WindowEvent *e)
|
|||||||
*/
|
*/
|
||||||
for (i = 0; i < 9; i++) w->SetWidgetDisabledState(i + 7, !HasBit(avail_airports, i));
|
for (i = 0; i < 9; i++) w->SetWidgetDisabledState(i + 7, !HasBit(avail_airports, i));
|
||||||
|
|
||||||
// select default the coverage area to 'Off' (16)
|
/* select default the coverage area to 'Off' (16) */
|
||||||
airport = GetAirport(_selected_airport_type);
|
airport = GetAirport(_selected_airport_type);
|
||||||
SetTileSelectSize(airport->size_x, airport->size_y);
|
SetTileSelectSize(airport->size_x, airport->size_y);
|
||||||
|
|
||||||
@ -184,8 +184,7 @@ static void BuildAirportPickerWndProc(Window *w, WindowEvent *e)
|
|||||||
if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
|
if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
|
||||||
|
|
||||||
DrawWindowWidgets(w);
|
DrawWindowWidgets(w);
|
||||||
// strings such as 'Size' and 'Coverage Area'
|
/* strings such as 'Size' and 'Coverage Area' */
|
||||||
// 'Coverage Area'
|
|
||||||
int text_end = DrawStationCoverageAreaText(2, 206, SCT_ALL, rad, false);
|
int text_end = DrawStationCoverageAreaText(2, 206, SCT_ALL, rad, false);
|
||||||
text_end = DrawStationCoverageAreaText(2, text_end + 4, SCT_ALL, rad, true) + 4;
|
text_end = DrawStationCoverageAreaText(2, text_end + 4, SCT_ALL, rad, true) + 4;
|
||||||
if (text_end != w->widget[6].bottom) {
|
if (text_end != w->widget[6].bottom) {
|
||||||
|
Loading…
Reference in New Issue
Block a user