The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: uci on March 09, 2018, 06:33:49 AM

Title: sliced map view range not working
Post by: uci on March 09, 2018, 06:33:49 AM
There is a bug regarding range selection of sliced map view level. It appears only in certain conditions.

Steps to reproduce:

1. Create a new map
2. Enter sliced map view [Ctrl-U] and use the keys to change level (Home/End in pak128, or +/- in pak64)
3. Go to minimum level then rise again

=> You cannot raise above level 0 !

There is no problem when map is reloaded, or when using arrows in 'Display Setting' dialog.
Title: Re: sliced map view range not working
Post by: Dwachs on March 18, 2018, 05:18:28 PM
Then the maximal height of tiles in your map is zero, and it would not make sense to increase the slice level.
Title: Re: sliced map view range not working
Post by: Ters on March 18, 2018, 05:55:57 PM
Quote from: Dwachs on March 18, 2018, 05:18:28 PM
Then the maximal height of tiles in your map is zero, and it would not make sense to increase the slice level.

But uci reported two different behaviors. One of them has to be wrong, or at least confusing.
Title: Re: sliced map view range not working
Post by: uci on March 18, 2018, 06:45:36 PM
Let me reformulate then.
The bug is that you cannot raise the slice map level on newly created maps using the keys. You can only lower it. Is not related with maximal height of tiles.
Title: Re: sliced map view range not working
Post by: Dwachs on March 18, 2018, 07:00:47 PM
Should be fixed in r8407. Strange enough, it worked as I did my first quick test. Thanks for reporting.
Title: Re: sliced map view range not working
Post by: uci on March 19, 2018, 06:09:37 PM
Fixed.

I noticed that lowest slice view level equals water level or the deepest level you dig underwater, which is a nice feature of your fix. Thanks.  :)