The International Simutrans Forum

 

Author Topic: Bug fix: bridge graphics  (Read 517 times)

0 Members and 1 Guest are viewing this topic.

Offline Phystam

  • Devotee
  • *
  • Posts: 496
  • Pak256.Ex developer
    • Pak256 wiki page
  • Languages: JP, EN, EO
Bug fix: bridge graphics
« 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

before:


after:
« Last Edit: November 19, 2019, 03:47:44 PM by Phystam »

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20346
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Bug fix: bridge graphics
« Reply #1 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.