misc_gui.c
changeset 258 e6cbfc682f59
parent 235 74233a1c6a53
child 278 a0a9b0d903aa
equal deleted inserted replaced
257:0ff8a2e60a0d 258:e6cbfc682f59
  1114 			_switch_mode = SM_SAVE;
  1114 			_switch_mode = SM_SAVE;
  1115 			FiosMakeSavegameName(_file_to_saveload.name, WP(w,querystr_d).buf);
  1115 			FiosMakeSavegameName(_file_to_saveload.name, WP(w,querystr_d).buf);
  1116 		}
  1116 		}
  1117 		break;
  1117 		break;
  1118 	case WE_DESTROY:
  1118 	case WE_DESTROY:
  1119 		DoCommandP(0, 0, 0, NULL, CMD_PAUSE);
       
  1120 		_query_string_active = false;
  1119 		_query_string_active = false;
  1121 		FiosFreeSavegameList();
  1120 		FiosFreeSavegameList();
  1122 		break;
  1121 		break;
  1123 	}
  1122 	}
  1124 }
  1123 }
  1187 		SET_DPARAM16(2, _date);
  1186 		SET_DPARAM16(2, _date);
  1188 		GetString(_edit_str_buf, STR_4004);
  1187 		GetString(_edit_str_buf, STR_4004);
  1189 	} else if (mode == SLD_SAVE_SCENARIO) {
  1188 	} else if (mode == SLD_SAVE_SCENARIO) {
  1190 		strcpy(_edit_str_buf, "UNNAMED");
  1189 		strcpy(_edit_str_buf, "UNNAMED");
  1191 	}
  1190 	}
  1192 
       
  1193 	if (_game_mode != GM_MENU)
       
  1194 		DoCommandP(0, 1, 0, NULL, CMD_PAUSE);
       
  1195 
  1191 
  1196 	BuildFileList();
  1192 	BuildFileList();
  1197 
  1193 
  1198 	ResetObjectToPlace();
  1194 	ResetObjectToPlace();
  1199 }
  1195 }