mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -04:00
some code format adjustment.
This commit is contained in:
parent
82715d1d0b
commit
16db1564c3
2 changed files with 68 additions and 42 deletions
|
@ -2179,39 +2179,35 @@ void CFinalSunDlg::OnHelpTipoftheday()
|
|||
void CFinalSunDlg::UnloadAll()
|
||||
{
|
||||
int iQuit = MessageBox(GetLanguageStringACP("MainDialogExitQuestion"), GetLanguageStringACP("MainDialogExitQuestionCap"), MB_ICONQUESTION | MB_YESNO | MB_DEFBUTTON2);
|
||||
if (iQuit == IDNO) return;
|
||||
else {
|
||||
try {
|
||||
|
||||
CShutDownDlg dlg(this);
|
||||
dlg.ShowWindow(SW_SHOW);
|
||||
dlg.UpdateWindow();
|
||||
|
||||
tiledata = 0;
|
||||
|
||||
theApp.m_loading->FreeAll();
|
||||
|
||||
rules.Clear();
|
||||
ai.Clear();
|
||||
art.Clear();
|
||||
tiles_t.Clear();
|
||||
tiles_s.Clear();
|
||||
tiles_u.Clear();
|
||||
Map->GetIniFile().Clear();
|
||||
sound.Clear();
|
||||
tutorial.Clear();
|
||||
g_data.Clear();
|
||||
language.Clear();
|
||||
|
||||
|
||||
|
||||
DestroyWindow();
|
||||
} catch (...) {
|
||||
DestroyWindow();
|
||||
}
|
||||
if (iQuit == IDNO) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
|
||||
CShutDownDlg dlg(this);
|
||||
dlg.ShowWindow(SW_SHOW);
|
||||
dlg.UpdateWindow();
|
||||
|
||||
tiledata = nullptr;
|
||||
|
||||
theApp.m_loading->FreeAll();
|
||||
|
||||
rules.Clear();
|
||||
ai.Clear();
|
||||
art.Clear();
|
||||
tiles_t.Clear();
|
||||
tiles_s.Clear();
|
||||
tiles_u.Clear();
|
||||
Map->GetIniFile().Clear();
|
||||
sound.Clear();
|
||||
tutorial.Clear();
|
||||
g_data.Clear();
|
||||
language.Clear();
|
||||
|
||||
DestroyWindow();
|
||||
} catch (...) {
|
||||
DestroyWindow();
|
||||
}
|
||||
}
|
||||
|
||||
void CFinalSunDlg::OnOptionsSimpleview()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue