Codestyle cleanup (mods.cpp, mapgen_math.cpp)

Fixes warnings mentioned in #1348 (except those in connection.cpp)
It's done both ways.  The code style guidelines seem to specify two tabs.  However, this actually uses three tabs.