summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fe8739e)
raw | patch | inline | side by side (parent: fe8739e)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 18 Dec 2021 23:33:25 +0000 (02:33 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 18 Dec 2021 23:33:25 +0000 (02:33 +0300) |
src/game/g_saveload.pas | patch | blob | history |
index 80fcbfc50dfd6520c42267454f7dce596895b309..9ab49931944e1b9e8a2051d68083ba1699a8642e 100644 (file)
--- a/src/game/g_saveload.pas
+++ b/src/game/g_saveload.pas
e_WriteLog('Loading saved game...', TMsgType.Notify);
- {$IF DEFINED(D2F_DEBUG)}try{$ENDIF}
+{$IF DEFINED(D2F_DEBUG)}
+ try
+{$ENDIF}
//g_Game_Free(false); // don't free textures for the same map
g_Game_ClearLoading();
g_Game_SetLoadingText(_lc[I_LOAD_SAVE_FILE], 0, False);
// Çàãðóçêà è çàïóñê êàðòû
//FIXME: save/load `asMegawad`
if not g_Game_StartMap(false{asMegawad}, WAD_Path+':\'+Map_Name, True, curmapfile) then
- begin
- g_FatalError(Format(_lc[I_GAME_ERROR_MAP_LOAD], [WAD_Path + ':\' + Map_Name]));
- exit;
- end;
+ raise Exception.Create(Format(_lc[I_GAME_ERROR_MAP_LOAD], [WAD_Path + ':\' + Map_Name]));
// Íàñòðîéêè èãðîêîâ è áîòîâ
g_Player_Init();
// done
gLoadGameMode := false;
result := true;
- {$IF DEFINED(D2F_DEBUG)}
+{$IF DEFINED(D2F_DEBUG)}
except
begin
errpos := LongWord(st.position);
raise;
end;
end;
- {$ENDIF}
+{$ENDIF}
finally
st.Free();
end;