Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Please Fix Update.mrs To Src National Gunz

Newbie Spellweaver
Joined
Jul 21, 2010
Messages
47
Reaction score
0
please help with this .... I saw a tutorial out there that says that supposedly fixes the bug that but it ise and grab ... if not this bad or not?


This is the code .../Stable/cml/source/MZFileSystem.cpp

Code:
bool MZFileSystem::AddItem(MZFILEDESC* pDesc)
{
	char key[_MAX_PATH];
	strcpy(key,pDesc->m_szFileName);
	strlwr(key);
	
//	_RPT1(_CRT_WARN,"%s\n",key);

	ZFLISTITOR it=m_ZFileList.find(key);
	if(it!=m_ZFileList.end())
	{
		MZFILEDESC *pOld=it->second;

		 
		double diff=difftime(dos2unixtime(pDesc->m_modTime),dos2unixtime(pOld->m_modTime));
		if(diff<0) // DiffTime File
		{
			// Update File name load Update2.mrs
		// 	int nOldPkgNum=GetUpdatePackageNumber(pOld->m_szZFileName);
		// 	int nNewPkgNum=GetUpdatePackageNumber(pDesc->m_szZFileName);
		// 	_ASSERT(nOldPkgNum>nNewPkgNum);

		// 	return false;
		}

		 
		delete pOld;
		m_ZFileList.erase(it);
	}

	m_ZFileList.insert(ZFLIST::value_type(string(key), pDesc));
	return true;
}


Please!
 
Back
Top