Add default.flags to detect functions/features of the current game

Also a fix for leafdecay.