The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Phystam on November 19, 2019, 03:36:28 PM

Title: Bug fix: bridge graphics
Post by: Phystam on November 19, 2019, 03:36:28 PM
Hi james,

Now I think that I have fixed the bridge graphics problem if the bridge has own way graphics.
the problem was from calc_image() function in boden/wege/weg.cc. While the way checks whether it is on the bridge in Standard code, the way does not check it in Extended code despite it is necessary for "has_own_way_graphics" flag.

the github repository is here: https://github.com/Phystam/Simutrans-Extended/tree/bridge-draw (https://github.com/Phystam/Simutrans-Extended/tree/bridge-draw)

before:
(https://cdn.discordapp.com/attachments/514739526330220547/646375455770804224/unknown.png)

after:
(https://cdn.discordapp.com/attachments/514739526330220547/646375704467865634/unknown.png)
Title: Re: Bug fix: bridge graphics
Post by: jamespetts on December 18, 2019, 12:56:54 AM
Thank you very much for this and apologies for not being able to look into this before: I have only recently got my new computer running. I have now incorporated this. Thank you again.