diff options
author | Darkvater <Darkvater@openttd.org> | 2006-09-03 22:39:02 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-09-03 22:39:02 +0000 |
commit | 7369122a3ef31c2fe6a89f0cdb8390c842aad6a6 (patch) | |
tree | 99b7d09f300e1419ec5a28cd6a5bec2e50c77b3e /viewport.c | |
parent | 5cd58a448d1b4bf3c49bd1ba5ca262b73e79e280 (diff) | |
download | openttd-7369122a3ef31c2fe6a89f0cdb8390c842aad6a6.tar.xz |
(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)
Diffstat (limited to 'viewport.c')
-rw-r--r-- | viewport.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/viewport.c b/viewport.c index 1f522ab7a..f6ff534f7 100644 --- a/viewport.c +++ b/viewport.c @@ -1894,7 +1894,9 @@ void UpdateTileSelection(void) // redraw selection if (_thd.drawstyle != _thd.new_drawstyle || _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? if (_thd.drawstyle) SetSelectionTilesDirty(); |