* Added nlua function to get SDL ticks.
* Revamped jumpdist. Should give better results, and more importantly is now orders of magnitude faster especially for large max queries.