News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

6828 wayobj tidy

Started by kierongreen, October 19, 2013, 04:14:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kierongreen

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.

prissi

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.

kierongreen

Committed in 6829 - have to say I'm not sure there'll be much speed improvement (other than avoiding some branches maybe?)