Changeset 260 for trunk/src/shared/Database/DBCStores.cpp
- Timestamp:
- 11/21/08 08:47:55 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shared/Database/DBCStores.cpp
r229 r260 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. See the13 * 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 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 }; 124 135 125 static DBCStorage <TaxiPathNodeEntry> sTaxiPathNodeStore(TaxiPathNodeEntryfmt); 136 137 126 DBCStorage <TotemCategoryEntry> sTotemCategoryStore(TotemCategoryEntryfmt); 138 139 127 DBCStorage <WorldMapAreaEntry> sWorldMapAreaStore(WorldMapAreaEntryfmt); 140 128 DBCStorage <WorldSafeLocsEntry> sWorldSafeLocsStore(WorldSafeLocsEntryfmt); … … 236 224 } 237 225 } 238 226 239 227 LoadDBC(availableDbcLocales,bar,bad_dbc_files,sFactionTemplateStore, dbcPath,"FactionTemplate.dbc"); 240 228 LoadDBC(availableDbcLocales,bar,bad_dbc_files,sGemPropertiesStore, dbcPath,"GemProperties.dbc"); … … 284 272 { 285 273 SkillLineAbilityEntry const *skillLine = sSkillLineAbilityStore.LookupEntry(j); 286 274 287 275 if(!skillLine) 288 276 continue; … … 291 279 292 280 if(spellInfo && (spellInfo->Attributes & 0x1D0) == 0x1D0) 293 { 281 { 294 282 for (unsigned int i = 1; i < sCreatureFamilyStore.GetNumRows(); ++i) 295 283 { … … 298 286 continue; 299 287 300 if(skillLine->skillId != cFamily->skillLine && skillLine->skillId != cFamily->skillLine2)288 if(skillLine->skillId != cFamily->skillLine[0] && skillLine->skillId != cFamily->skillLine[1]) 301 289 continue; 302 290 … … 310 298 LoadDBC(availableDbcLocales,bar,bad_dbc_files,sSpellFocusObjectStore, dbcPath,"SpellFocusObject.dbc"); 311 299 LoadDBC(availableDbcLocales,bar,bad_dbc_files,sSpellItemEnchantmentStore,dbcPath,"SpellItemEnchantment.dbc"); 312 313 300 LoadDBC(availableDbcLocales,bar,bad_dbc_files,sSpellItemEnchantmentConditionStore,dbcPath,"SpellItemEnchantmentCondition.dbc"); 314 301 LoadDBC(availableDbcLocales,bar,bad_dbc_files,sSpellRadiusStore, dbcPath,"SpellRadius.dbc"); … … 456 443 // check at up-to-date DBC files (71 is last char title added in 2.4.3) 457 444 // check at up-to-date DBC files (1768 is last area added in 2.4.3) 458 if( !sSpellStore.LookupEntry(53085) || 459 !sSkillLineAbilityStore.LookupEntry(17514) || 445 if( !sSpellStore.LookupEntry(53085) || 446 !sSkillLineAbilityStore.LookupEntry(17514) || 460 447 !sMapStore.LookupEntry(598) || 461 !sGemPropertiesStore.LookupEntry(1127) || 462 !sItemExtendedCostStore.LookupEntry(2425) || 448 !sGemPropertiesStore.LookupEntry(1127) || 449 !sItemExtendedCostStore.LookupEntry(2425) || 463 450 !sCharTitlesStore.LookupEntry(71) || 464 451 !sAreaStore.LookupEntry(1768) )