Changeset 272 for trunk/src/shared/Database/DBCStores.cpp
- Timestamp:
- 11/22/08 00:35:41 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shared/Database/DBCStores.cpp
r260 r272 11 11 * This program is distributed in the hope that it will be useful, 12 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 * GNU General Public License for more details. 15 15 * 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 20 … … 122 122 // DBC used only for initialization sTaxiPathSetBySource at startup. 123 123 TaxiPathNodesByPath sTaxiPathNodesByPath; 124 124 struct TaxiPathNodeEntry 125 { 126 uint32 path; 127 uint32 index; 128 uint32 mapid; 129 float x; 130 float y; 131 float z; 132 uint32 actionFlag; 133 uint32 delay; 134 }; 125 135 static DBCStorage <TaxiPathNodeEntry> sTaxiPathNodeStore(TaxiPathNodeEntryfmt); 136 126 137 DBCStorage <TotemCategoryEntry> sTotemCategoryStore(TotemCategoryEntryfmt); 138 127 139 DBCStorage <WorldMapAreaEntry> sWorldMapAreaStore(WorldMapAreaEntryfmt); 128 140 DBCStorage <WorldSafeLocsEntry> sWorldSafeLocsStore(WorldSafeLocsEntryfmt); … … 224 236 } 225 237 } 226 238 227 239 LoadDBC(availableDbcLocales,bar,bad_dbc_files,sFactionTemplateStore, dbcPath,"FactionTemplate.dbc"); 228 240 LoadDBC(availableDbcLocales,bar,bad_dbc_files,sGemPropertiesStore, dbcPath,"GemProperties.dbc"); … … 272 284 { 273 285 SkillLineAbilityEntry const *skillLine = sSkillLineAbilityStore.LookupEntry(j); 274 286 275 287 if(!skillLine) 276 288 continue; … … 279 291 280 292 if(spellInfo && (spellInfo->Attributes & 0x1D0) == 0x1D0) 281 { 293 { 282 294 for (unsigned int i = 1; i < sCreatureFamilyStore.GetNumRows(); ++i) 283 295 { … … 286 298 continue; 287 299 288 if(skillLine->skillId != cFamily->skillLine [0] && skillLine->skillId != cFamily->skillLine[1])300 if(skillLine->skillId != cFamily->skillLine && skillLine->skillId != cFamily->skillLine2) 289 301 continue; 290 302 … … 298 310 LoadDBC(availableDbcLocales,bar,bad_dbc_files,sSpellFocusObjectStore, dbcPath,"SpellFocusObject.dbc"); 299 311 LoadDBC(availableDbcLocales,bar,bad_dbc_files,sSpellItemEnchantmentStore,dbcPath,"SpellItemEnchantment.dbc"); 312 300 313 LoadDBC(availableDbcLocales,bar,bad_dbc_files,sSpellItemEnchantmentConditionStore,dbcPath,"SpellItemEnchantmentCondition.dbc"); 301 314 LoadDBC(availableDbcLocales,bar,bad_dbc_files,sSpellRadiusStore, dbcPath,"SpellRadius.dbc"); … … 443 456 // check at up-to-date DBC files (71 is last char title added in 2.4.3) 444 457 // check at up-to-date DBC files (1768 is last area added in 2.4.3) 445 if( !sSpellStore.LookupEntry(53085) || 446 !sSkillLineAbilityStore.LookupEntry(17514) || 458 if( !sSpellStore.LookupEntry(53085) || 459 !sSkillLineAbilityStore.LookupEntry(17514) || 447 460 !sMapStore.LookupEntry(598) || 448 !sGemPropertiesStore.LookupEntry(1127) || 449 !sItemExtendedCostStore.LookupEntry(2425) || 461 !sGemPropertiesStore.LookupEntry(1127) || 462 !sItemExtendedCostStore.LookupEntry(2425) || 450 463 !sCharTitlesStore.LookupEntry(71) || 451 464 !sAreaStore.LookupEntry(1768) )