Updated DBC version check. Thanks to yad02.

This commit is contained in:
tomrus88 2009-04-23 15:04:03 +04:00
parent a9e148edac
commit 04af237d2a

View file

@ -481,13 +481,13 @@ void LoadDBCStores(const std::string& dataPath)
}
// Check loaded DBC files proper version
if( !sSpellStore.LookupEntry(100034) || // last added spell in 3.1.0
!sMapStore.LookupEntry(624) || // last map added in 3.1.0
!sGemPropertiesStore.LookupEntry(1557) || // last gem property added in 3.1.0
!sItemExtendedCostStore.LookupEntry(2595) || // last item extended cost added in 3.1.0
!sCharTitlesStore.LookupEntry(154) || // last char title added in 3.1.0
!sAreaStore.LookupEntry(2833) || // last area (areaflag) added in 3.1.0
!sItemStore.LookupEntry(45704) ) // last client known item added in 3.1.0
if( !sSpellStore.LookupEntry(65509) || // last added spell in 3.1.1
!sMapStore.LookupEntry(624) || // last map added in 3.1.1
!sGemPropertiesStore.LookupEntry(1609) || // last gem property added in 3.1.1
!sItemExtendedCostStore.LookupEntry(2670) || // last item extended cost added in 3.1.1
!sCharTitlesStore.LookupEntry(166) || // last char title added in 3.1.1
!sAreaStore.LookupEntry(2905) || // last area (areaflag) added in 3.1.1
!sItemStore.LookupEntry(46379) ) // last client known item added in 3.1.1
{
sLog.outError("\nYou have _outdated_ DBC files. Please extract correct versions from current using client.");
exit(1);