Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Use lookup table for terrain costs #34
It seems like every time I'm in this code I find something worth changing. This simple change increases speed by 20-25%. I would have guessed the compiler would do something similar for me automatically but looks like not. The int8_t -> int changes aren't super relevant but they are promoted to int anyway so it's pointless for them to be char types.