summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 94a927c)
raw | patch | inline | side by side (parent: 94a927c)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 12 Sep 2017 20:48:50 +0000 (23:48 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 12 Sep 2017 21:17:05 +0000 (00:17 +0300) |
src/game/g_saveload.pas | patch | blob | history |
index 4391bf51b1bda3f9b76d5b02beb706ddf46c4a05..dec46f1ec720c21b68354583873296986d5f161a 100644 (file)
--- a/src/game/g_saveload.pas
+++ b/src/game/g_saveload.pas
i: Integer;
gameCleared: Boolean = false;
curmapfile: AnsiString = '';
+ {$IF DEFINED(D2F_DEBUG)}
errpos: LongWord = 0;
+ {$ENDIF}
begin
result := false;
e_WriteLog('Loading saved game...', MSG_NOTIFY);
- try
+ {$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);
// done
gLoadGameMode := false;
result := true;
+ {$IF DEFINED(D2F_DEBUG)}
except
begin
errpos := LongWord(st.position);
raise;
end;
end;
+ {$ENDIF}
finally
st.Free();
end;