Add loading of XML files (for Editor-Qt).
Prevent buffer overflow for map ids with more then 4 digits.
Only call SetupPlayerSpawn with new_game_flag set.