Пример #1
0
//	-----------------------------------------------------------------------------
int SaveSituation(void)
{
    if (ui_get_filename( sit_filename, "*.SIT", "Save Situation" )) {
        set_extension(sit_filename, "MIN");
        if (med_save_mine(sit_filename)) {
            return 0;
        }

        set_extension(sit_filename, "SIT");
        if (med_save_situation(sit_filename))
            return 0;
    }

    return 1;
}
Пример #2
0
//	-----------------------------------------------------------------------------
int SaveSituation(void)
{
	if (ui_get_filename( sit_filename, "*.SIT", "Save Situation" )) {
		set_extension(sit_filename, "MIN");
		if (med_save_mine(sit_filename)) {
			mprintf((0, "Unable to save mine in SaveSituation.\n"));
			return 0;
		}

		set_extension(sit_filename, "SIT");
		if (med_save_situation(sit_filename))
			return 0;
	}
	
	return 1;
}