Cleans FLAT_WORLD and updates WORLDTYPE.