- use FCompressedBuffer to store level snapshots. FCompressedMemFile has been removed.
This commit is contained in:
parent
da83d9e2bd
commit
075e98c967
11 changed files with 46 additions and 249 deletions
|
|
@ -1970,11 +1970,7 @@ void G_DoLoadGame ()
|
|||
NextSkill = next;
|
||||
}
|
||||
|
||||
if (level.info->snapshot != NULL)
|
||||
{
|
||||
delete level.info->snapshot;
|
||||
level.info->snapshot = NULL;
|
||||
}
|
||||
level.info->Snapshot.Clean();
|
||||
|
||||
BackupSaveName = savename;
|
||||
|
||||
|
|
@ -2263,11 +2259,7 @@ void G_DoSaveGame (bool okForQuicksave, FString filename, const char *descriptio
|
|||
BackupSaveName = filename;
|
||||
|
||||
// We don't need the snapshot any longer.
|
||||
if (level.info->snapshot != NULL)
|
||||
{
|
||||
delete level.info->snapshot;
|
||||
level.info->snapshot = NULL;
|
||||
}
|
||||
level.info->Snapshot.Clean();
|
||||
|
||||
insave = false;
|
||||
I_FreezeTime(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue