The International Simutrans Forum

 

Author Topic: 6828 wayobj tidy  (Read 1197 times)

0 Members and 1 Guest are viewing this topic.

Offline kierongreen

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 2346
6828 wayobj tidy
« 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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10633
  • Languages: De,EN,JP
Re: 6828 wayobj tidy
« Reply #1 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.

Offline kierongreen

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 2346
Re: 6828 wayobj tidy
« Reply #2 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?)