The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Ranran on February 01, 2021, 01:06:29 PM

Title: Shortcut key to previously selected ways may not change the selected tool icon
Post by: Ranran on February 01, 2021, 01:06:29 PM
Reproduction procedure:

(1) Lay the road from the road tool
(2) Click another way icon in the same waytype(road tool) bar
(3) Press the "s" key (shortcut key for the road previously laid)
(4) The selected tool icon in the toolbar is (2), but the cursor changes to that of (1). When laid, the road of (1) will be laid.

This bug can be reproduced with either standard or extended.
Title: Re: Shortcut key to previously selected ways may not change the selected tool icon
Post by: Dwachs on February 02, 2021, 09:29:11 PM
The question is, which kind of road should be activated by "s" key: the road last used for building [(1) in your post] or the last selected road [(2) in your post]? I would expect (1), but the logic around this is broken.
Title: Re: Shortcut key to previously selected ways may not change the selected tool icon
Post by: Dwachs on February 04, 2021, 05:57:32 PM
should be fixed in r9600.
Title: Re: Shortcut key to previously selected ways may not change the selected tool icon
Post by: Ranran on February 05, 2021, 09:15:57 AM
I can confirm that this has been fixed.
Thank you for fixing it.