Merge pull request #7343 from Robyt3/Engine-Demo-Editor-Type-Preservation

Preserve demo type when slicing
This commit is contained in:
Dennis Felsing 2023-10-13 21:58:20 +00:00 committed by GitHub
commit 90466689d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1228,7 +1228,7 @@ void CDemoEditor::Slice(const char *pDemo, const char *pDst, int StartTick, int
CDemoRecorder DemoRecorder(m_pSnapshotDelta);
unsigned char *pMapData = DemoPlayer.GetMapData(m_pStorage);
const int Result = DemoRecorder.Start(m_pStorage, m_pConsole, pDst, m_pNetVersion, pMapInfo->m_aName, &Sha256, pMapInfo->m_Crc, "client", pMapInfo->m_Size, pMapData, NULL, pfnFilter, pUser) == -1;
const int Result = DemoRecorder.Start(m_pStorage, m_pConsole, pDst, m_pNetVersion, pMapInfo->m_aName, &Sha256, pMapInfo->m_Crc, pInfo->m_Header.m_aType, pMapInfo->m_Size, pMapData, NULL, pfnFilter, pUser) == -1;
free(pMapData);
if(Result != 0)
{