Fix: Dummy connect

This commit is contained in:
def 2014-05-17 21:37:55 +02:00
parent f0ed57a9a3
commit bede303976

View file

@ -1749,7 +1749,13 @@ void CClient::ProcessServerPacketDummy(CNetChunk *pPacket)
if(Sys)
{
if(Msg == NETMSG_SNAP || Msg == NETMSG_SNAPSINGLE || Msg == NETMSG_SNAPEMPTY)
if(Msg == NETMSG_CON_READY)
{
m_DummyConnected = true;
m_LastDummyConnectTime = GameTick();
g_Config.m_ClDummy = 1;
}
else if(Msg == NETMSG_SNAP || Msg == NETMSG_SNAPSINGLE || Msg == NETMSG_SNAPEMPTY)
{
int NumParts = 1;
int Part = 0;
@ -1924,10 +1930,6 @@ void CClient::ProcessServerPacketDummy(CNetChunk *pPacket)
m_LocalStartTime = time_get();
SetState(IClient::STATE_ONLINE);
m_DummyConnected = true;
m_LastDummyConnectTime = GameTick;
g_Config.m_ClDummy = 1;
//DemoRecorder_HandleAutoStart();
}