The International Simutrans Forum

Development => Bug Reports => Topic started by: uci on February 15, 2018, 08:05:12 PM

Title: zooming out shows river artefacts
Post by: uci on February 15, 2018, 08:05:12 PM
When zooming out a map in pak128 or pak128Britain the following artefacts appear along the rivers. Sometimes you need to hit rotate map button in order to produce the bug. It appears only in these 2 packs (128, half heights). Could be pack specific?

(https://i.imgur.com/TSTRyAc.png)

(https://i.imgur.com/vcMYZal.png)
Title: Re: zooming out shows river artefacts
Post by: Yona-TYT on February 16, 2018, 02:51:07 AM
It seems an error in the pakset in my humble opinion. ;)
Title: Re: zooming out shows river artefacts
Post by: Leartin on February 16, 2018, 05:11:14 AM
They are probably set as objects with the "draw_as_ding"-flag. On zoom, no matter whether its in or out, each tile behaves on it's own, so disconnection can happen. Same applies to ways without the "draw-as-ding" flag buildt on artificial slopes.

Pak designers can somewhat circumvent this by making each tile of their way a bit larger than the tile, so they would overlap slightly.
Title: Re: zooming out shows river artefacts
Post by: Dwachs on February 16, 2018, 10:43:36 AM
This is related to how simutrans zooms sprites. After zooming, the tile borders of tile and way images might not match.
Title: Re: zooming out shows river artefacts
Post by: uci on February 16, 2018, 11:26:18 AM
Strange, but the bug does not appear on a fresh created map (as long as you don't rotate it). However, the bug appears on maps loaded from disk.
Title: Re: zooming out shows river artefacts
Post by: DrSuperGood on February 17, 2018, 01:17:14 AM
Seen it effecting more than just rivers, such as freshly constructed rails and roads. Almost like an off by one error.
Title: Re: zooming out shows river artefacts
Post by: uci on February 17, 2018, 08:06:45 AM
Indeed it affects ways, but only some of them (pak128).

(https://i.imgur.com/modf8y4.png)