Пример #1
0
static void startup_checks()
{
    map_setup();
    if (lang_nplaces != nplaces) {
	fprintf(stderr, "mismatch in 'place' lists\n");
	exit(1);
    }
    if (lang_nthings != n_thing_place) {
	fprintf(stderr, "mismatch in 'thing' lists\n");
	exit(1);
    }
}
Пример #2
0
bool file_new_map(void)
{
	char		file_name[256];
	
		// get the map name
		
	strcpy(file_name,"NewMap");
	if (!dialog_file_new_run("Create a New Map",file_name)) return(FALSE);
	
		// set the map paths
		
	map_setup(&file_path_setup,anisotropic_mode_none,setup.mipmap_mode,FALSE);
	
		// copy the course script
		
	if (!create_course_script(file_name)) {
		StandardAlert(kAlertCautionAlert,"\pdim3 Editor could not create map script","\pThe disk might be locked or a folder might be missing.\n\nIf you are running dim3 directly from the DMG file, then you need to move the files to your harddrive (DMGs are read-only).",NULL,NULL);
		return(FALSE);
	}