Fix errors in src/ that cppcheck yielded with the default configuration
Fix last error
Fix further issues
Revert change in irr_driver.cpp
Fixed compiler warnings.
Merge branch 'cppcheck' of https://github.com/tobbi/stk-code into tobbi-cppcheck
The (float) cast is not necessary, and makes it harder to read.
Use proper format (instead of casting unsigned to int).
Better handle out-of-memory situations.
Merge branch 'tobbi-cppcheck'