Fix errors in src/ that cppcheck yielded with the default configuration

This fixes a number of cppcheck errors that were found in the /src subfolder of supertuxkart.
This is not ok - it converts the 2.0 into a double precision number, forcing a double precision sqrt, and division, which is unnecessary.