Audio::Destroy();
void BuildGameMap(){	int w, h, sc, sclr;	// create 2048x2048 screenshots of the full Ultima 7 map.	// WARNING!! Takes up lots of memory and diskspace!	if (arg_buildmap >= 0) {		int maplift = 16;		Exult_Game gametype;		switch(arg_buildmap) {			case 0: maplift = 16; break;			case 1: maplift = 10; break;			case 2: maplift = 5; break;		}		if (run_bg) {			gametype = BLACK_GATE;			get_game_paths("blackgate");		} else if (run_si) {			gametype = SERPENT_ISLE;			get_game_paths("serpentisle");		} else {			cerr << "You have to specify --bg or --si when using -buildmap" << endl;			exit(1);		}		h = w = c_tilesize * c_tiles_per_schunk; sc = 1, sclr = Image_window::point;		Image_window8::set_gamma(1, 1, 1);		gwin = new Game_window(w, h, sc, sclr);		current_res = find_resolution(w, h, sc);		Game::create_game(gametype);		gwin->init_files(false); //init, but don't show plasma			gwin->get_map()->init();// +++++Got to clean this up.		gwin->get_pal()->set(0);		for (int x = 0; x < c_num_chunks / c_chunks_per_schunk; x++) {			for (int y = 0; y < c_num_chunks / c_chunks_per_schunk; y++) {				gwin->paint_map_at_tile(0,0,w,h,x * c_tiles_per_schunk, y * c_tiles_per_schunk, maplift);				char fn[15];				snprintf(fn, 15, "u7map%x%x.pcx", x, y);				SDL_RWops *dst = SDL_RWFromFile(fn, "wb");				cerr << x << "," << y << ": ";				gwin->get_win()->screenshot(dst);			}		}		exit(0);	}}