mirror of https://github.com/OpenTTD/OpenTTD
(svn r6368) -Fix [FS#136]: Station catchment area persists after switching tools. The
correct fix was to reset the highlight box if any size changes (grimrc)release/0.5
parent
de610df608
commit
f5bda65b05
|
@ -233,11 +233,7 @@ static void BuildDockStationWndProc(Window *w, WindowEvent *e)
|
||||||
|
|
||||||
rad = (_patches.modified_catchment) ? CA_DOCK : 4;
|
rad = (_patches.modified_catchment) ? CA_DOCK : 4;
|
||||||
|
|
||||||
if (_station_show_coverage) {
|
if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
|
||||||
SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
|
|
||||||
} else {
|
|
||||||
SetTileSelectBigSize(0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
DrawStationCoverageAreaText(4, 50, (uint)-1, rad);
|
DrawStationCoverageAreaText(4, 50, (uint)-1, rad);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1894,7 +1894,9 @@ void UpdateTileSelection(void)
|
||||||
// redraw selection
|
// redraw selection
|
||||||
if (_thd.drawstyle != _thd.new_drawstyle ||
|
if (_thd.drawstyle != _thd.new_drawstyle ||
|
||||||
_thd.pos.x != _thd.new_pos.x || _thd.pos.y != _thd.new_pos.y ||
|
_thd.pos.x != _thd.new_pos.x || _thd.pos.y != _thd.new_pos.y ||
|
||||||
_thd.size.x != _thd.new_size.x || _thd.size.y != _thd.new_size.y) {
|
_thd.size.x != _thd.new_size.x || _thd.size.y != _thd.new_size.y ||
|
||||||
|
_thd.outersize.x != _thd.new_outersize.x ||
|
||||||
|
_thd.outersize.y != _thd.new_outersize.y) {
|
||||||
// clear the old selection?
|
// clear the old selection?
|
||||||
if (_thd.drawstyle) SetSelectionTilesDirty();
|
if (_thd.drawstyle) SetSelectionTilesDirty();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue