mirror of https://github.com/OpenTTD/OpenTTD
(svn r12155) -Fix (r12154): some warnings (always compile before commit)
parent
3e70ee6ed7
commit
044ca2bbf6
|
@ -3409,7 +3409,7 @@ static bool AiCheckAirportResources(TileIndex tile, const AiDefaultBlockData *p,
|
||||||
const AirportFTAClass* airport = GetAirport(p->attr);
|
const AirportFTAClass* airport = GetAirport(p->attr);
|
||||||
uint w = airport->size_x;
|
uint w = airport->size_x;
|
||||||
uint h = airport->size_y;
|
uint h = airport->size_y;
|
||||||
uint rad = _patches.modified_catchment ? airport->catchment : CA_UNMODIFIED;
|
uint rad = _patches.modified_catchment ? airport->catchment : (uint)CA_UNMODIFIED;
|
||||||
|
|
||||||
if (cargo & 0x80) {
|
if (cargo & 0x80) {
|
||||||
GetProductionAroundTiles(values, tile2, w, h, rad);
|
GetProductionAroundTiles(values, tile2, w, h, rad);
|
||||||
|
|
|
@ -179,7 +179,7 @@ static void BuildAirportPickerWndProc(Window *w, WindowEvent *e)
|
||||||
airport = GetAirport(_selected_airport_type);
|
airport = GetAirport(_selected_airport_type);
|
||||||
SetTileSelectSize(airport->size_x, airport->size_y);
|
SetTileSelectSize(airport->size_x, airport->size_y);
|
||||||
|
|
||||||
int rad = _patches.modified_catchment ? airport->catchment : CA_UNMODIFIED;
|
int rad = _patches.modified_catchment ? airport->catchment : (uint)CA_UNMODIFIED;
|
||||||
|
|
||||||
if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
|
if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
|
||||||
|
|
||||||
|
|
|
@ -599,7 +599,7 @@ static void UpdateStationAcceptance(Station *st, bool show_msg)
|
||||||
TileXY(rect.min_x, rect.min_y),
|
TileXY(rect.min_x, rect.min_y),
|
||||||
rect.max_x - rect.min_x + 1,
|
rect.max_x - rect.min_x + 1,
|
||||||
rect.max_y - rect.min_y + 1,
|
rect.max_y - rect.min_y + 1,
|
||||||
_patches.modified_catchment ? FindCatchmentRadius(st) : CA_UNMODIFIED
|
_patches.modified_catchment ? FindCatchmentRadius(st) : (uint)CA_UNMODIFIED
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
memset(accepts, 0, sizeof(accepts));
|
memset(accepts, 0, sizeof(accepts));
|
||||||
|
|
Loading…
Reference in New Issue