mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r1476) -Fix: [1099209] Catchment area with drag&drop stations (Celestar)
This commit is contained in:
parent
05a3a83b6c
commit
ae72661742
|
@ -712,7 +712,7 @@ void DrawStationCoverageAreaText(int sx, int sy, uint mask, int rad) {
|
||||||
int y = _thd.pos.y;
|
int y = _thd.pos.y;
|
||||||
uint accepts[NUM_CARGO];
|
uint accepts[NUM_CARGO];
|
||||||
if (x != -1) {
|
if (x != -1) {
|
||||||
GetAcceptanceAroundTiles(accepts, TILE_FROM_XY(x,y), _thd.new_size.x >> 4, _thd.new_size.y >> 4, rad);
|
GetAcceptanceAroundTiles(accepts, TILE_FROM_XY(x, y), _thd.size.x /16, _thd.size.y /16 , rad);
|
||||||
DrawStationCoverageText(accepts, sx, sy, mask);
|
DrawStationCoverageText(accepts, sx, sy, mask);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -868,12 +868,7 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) {
|
||||||
SetTileSelectSize(x, y);
|
SetTileSelectSize(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_patches.modified_catchment) {
|
rad = (_patches.modified_catchment) ? CA_TRAIN : 4;
|
||||||
rad = CA_TRAIN;
|
|
||||||
} else {
|
|
||||||
rad = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (_station_show_coverage)
|
if (_station_show_coverage)
|
||||||
SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
|
SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
|
||||||
|
|
Loading…
Reference in New Issue