Fixed distanceFogConstant to work in stupid old useless c++ standard that is not c++11.