my problem
Hi guys. Neither map or the .exe is crushing but for 10 to 15 minutes whoever enters the map gets disconnected immediately and then again after 10 to 15 minutes the maps goes back to normal without taking any action, the problem fixes itself. DC reason appears as zone02.cpp 763 in the logs. Everything looks normal. Is there anyone having the same problem?
//W_CLIENT_OK_FOR_ZONE_SEND
void W_CLIENT_OK_FOR_ZONE_SEND(int tUserIndex)
{
char* tPacket = &mUSER[tUserIndex].mBUFFER_FOR_RECV[8];
if (!mAVATAR_OBJECT[tUserIndex].mCheckValidState)
{
mUSER[tUserIndex].Quit(FILE, FUNCTION, LINE);
return;
}
if (mUSER[tUserIndex].mMoveZoneResult == 1) {
return;
}
int tTribe;
time_t tCurrentTime = ::time(NULL);
CopyMemory(&tTribe, &tPacket[1], 4);
if (mUSER[tUserIndex].mAvatarInfo.aTribe != tTribe)
{
mUSER[tUserIndex].Quit(FILE, FUNCTION, LINE);
return;
}
if ((tCurrentTime - mUSER[tUserIndex].mHeartCheckTime) <= 3) {
mUSER[tUserIndex].mHeartCheckCount++;
if (mUSER[tUserIndex].mHeartCheckCount > 10) {
LogMgr()->Log("![HACK] : %s, %s, %d, %d\n"
, mUSER[tUserIndex].uID, mUSER[tUserIndex].mAvatarInfo.aName
, (tCurrentTime - mUSER[tUserIndex].mHeartCheckTime), mUSER[tUserIndex].mHeartCheckCount);
mUSER[tUserIndex].Quit(FILE, FUNCTION, LINE__);
}
return;
}
mUSER[tUserIndex].mHeartCheckCount = 0;
mUSER[tUserIndex].mHeartCheckTime = tCurrentTime;
}