Arithmetic comparisons are very fast - I don't know if we would gain any performance here really. We also get an additional comparison if amount <= 2, so theoretically we only gain 1 comparison on average here while making the code harder to read. -- https://code.launchpad.net/~widelands-dev/widelands/bug-1818073-worker/+merge/363851 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1818073-worker.
_______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp