// engine/client/client.cpp void CClient::ProcessServerPacket(CNetChunk *pPacket, int Conn, bool Dummy) { // [..] // add new unsigned char aTmpTranslateBuffer[CSnapshot::MAX_SIZE]; CSnapshot *pTmpTranslateBuffer = nullptr; int TranslatedSize = 0; if(IsSixup()) { pTmpTranslateBuffer = (CSnapshot *)aTmpTranslateBuffer; CTranslatedGameMessage GameMsg; TranslatedSize = pTmpBuffer3->TranslateSevenToSix(pTmpTranslateBuffer, m_TranslationContext, LocalTime(), CClient::GameTick(g_Config.m_ClDummy), GameMsg); if(TranslatedSize < 0) { dbg_msg("sixup", "failed to translate snapshot. error=%d", TranslatedSize); pTmpTranslateBuffer = nullptr; TranslatedSize = 0; } else if(GameMsg.IsValid()) { GameClient()->OnMessage(GameMsg.m_MsgId, &GameMsg.m_Unpacker, GameMsg.m_Conn, GameMsg.m_Dummy); } }