The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: kierongreen on October 19, 2013, 04:14:23 PM

Title: 6828 wayobj tidy
Post by: kierongreen on October 19, 2013, 04:14:23 PM
This tidies up the section of wayobj that checks for diagonal images. Instead of having cases for each direction these are calculated from the various ribi rotations.
Title: Re: 6828 wayobj tidy
Post by: prissi on October 19, 2013, 07:05:36 PM
Well, I trust you that this is equivalent. Indeed, it is much shorter and hopefully much faster, which is useful especially for the season change. Please submit.
Title: Re: 6828 wayobj tidy
Post by: kierongreen on October 19, 2013, 07:53:47 PM
Committed in 6829 - have to say I'm not sure there'll be much speed improvement (other than avoiding some branches maybe?)