mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Preserve demo type when slicing
Previously all sliced demos used type "client", even if the original demo had type "server". Now the type of the original demo is copied when slicing.
This commit is contained in:
parent
151394630f
commit
3af7de307a
|
@ -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