mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #7343 from Robyt3/Engine-Demo-Editor-Type-Preservation
Preserve demo type when slicing
This commit is contained in:
commit
90466689d3
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue