mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Remove netversion from demo editor init
This commit is contained in:
parent
399075c339
commit
53b01862d4
|
@ -2910,7 +2910,7 @@ void CClient::InitInterfaces()
|
|||
m_pNotifications = Kernel()->RequestInterface<INotifications>();
|
||||
m_pStorage = Kernel()->RequestInterface<IStorage>();
|
||||
|
||||
m_DemoEditor.Init(m_pGameClient->NetVersion(), &m_SnapshotDelta, m_pConsole, m_pStorage);
|
||||
m_DemoEditor.Init(&m_SnapshotDelta, m_pConsole, m_pStorage);
|
||||
|
||||
m_ServerBrowser.SetBaseInfo(&m_aNetClient[CONN_CONTACT], m_pGameClient->NetVersion());
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ CDemoEdit::CDemoEdit(const char *pNetVersion, class CSnapshotDelta *pSnapshotDel
|
|||
m_EndTick = EndTick;
|
||||
|
||||
// Init the demoeditor
|
||||
m_DemoEditor.Init(pNetVersion, &m_SnapshotDelta, NULL, pStorage);
|
||||
m_DemoEditor.Init(&m_SnapshotDelta, NULL, pStorage);
|
||||
}
|
||||
|
||||
void CDemoEdit::Run()
|
||||
|
|
|
@ -1219,9 +1219,8 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
void CDemoEditor::Init(const char *pNetVersion, class CSnapshotDelta *pSnapshotDelta, class IConsole *pConsole, class IStorage *pStorage)
|
||||
void CDemoEditor::Init(class CSnapshotDelta *pSnapshotDelta, class IConsole *pConsole, class IStorage *pStorage)
|
||||
{
|
||||
m_pNetVersion = pNetVersion;
|
||||
m_pSnapshotDelta = pSnapshotDelta;
|
||||
m_pConsole = pConsole;
|
||||
m_pStorage = pStorage;
|
||||
|
|
|
@ -190,10 +190,9 @@ class CDemoEditor : public IDemoEditor
|
|||
IConsole *m_pConsole;
|
||||
IStorage *m_pStorage;
|
||||
class CSnapshotDelta *m_pSnapshotDelta;
|
||||
const char *m_pNetVersion;
|
||||
|
||||
public:
|
||||
virtual void Init(const char *pNetVersion, class CSnapshotDelta *pSnapshotDelta, class IConsole *pConsole, class IStorage *pStorage);
|
||||
virtual void Init(class CSnapshotDelta *pSnapshotDelta, class IConsole *pConsole, class IStorage *pStorage);
|
||||
bool Slice(const char *pDemo, const char *pDst, int StartTick, int EndTick, DEMOFUNC_FILTER pfnFilter, void *pUser) override;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue