config.cpp
bool g_bCheckClientVersion = true; // activated function
string g_stClientVersion = "1215955205"; // key
void CheckClientVersion()
{
if (LC_IsEurope())
{
g_bCheckClientVersion = true;
}
else
{
g_bCheckClientVersion = false;
}
const DESC_MANAGER::DESC_SET & set = DESC_MANAGER::instance().GetClientSet();
DESC_MANAGER::DESC_SET::const_iterator it = set.begin();
while (it != set.end())
{
LPDESC d = *(it++);
if (!d->GetCharacter())
continue;
int version = atoi(g_stClientVersion.c_str());
int date = atoi(d->GetClientVersion() );
//if (0 != g_stClientVersion.compare(d->GetClientVersion()) )
if (version > date)
{
d->GetCharacter()->ChatPacket(CHAT_TYPE_NOTICE, LC_TEXT("Ŭ¶óÀ̾ðÆ® ¹öÀüÀÌ Æ²·Á ·Î±×¾Æ¿ô µË´Ï´Ù. Á¤»óÀûÀ¸·Î ÆÐÄ¡ ÈÄ Á¢¼ÓÇϼ¼¿ä."));
d->DelayedDisconnect(10);
}
}
}
what it takes to CheckClientVersion fix ?