Changeset 229 for trunk/src/game/ObjectMgr.cpp
- Timestamp:
- 11/19/08 13:48:34 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/ObjectMgr.cpp
r207 r229 893 893 } 894 894 895 // replace by new struc utres array895 // replace by new structures array 896 896 const_cast<CreatureDataAddonAura*&>(addon->auras) = new CreatureDataAddonAura[val.size()/2+1]; 897 897 … … 3133 3133 sLog.outErrorDb("Quest %u has `SrcItemId` = %u but `SrcItemCount` = 0, set to 1 but need fix in DB.", 3134 3134 qinfo->GetQuestId(),qinfo->SrcItemId); 3135 qinfo->SrcItemCount = 1; // update to 1 for allow quest work for backward comp tibility with DB3135 qinfo->SrcItemCount = 1; // update to 1 for allow quest work for backward compatibility with DB 3136 3136 } 3137 3137 } … … 3536 3536 Quest const* quest = GetQuestTemplate(quest_id); 3537 3537 3538 // some quest referenced in spells not exist (outdat aed spells)3538 // some quest referenced in spells not exist (outdated spells) 3539 3539 if(!quest) 3540 3540 continue; … … 3896 3896 const_cast<Quest*>(quest)->SetFlag(QUEST_TRINITY_FLAGS_EXPLORATION_OR_EVENT); 3897 3897 3898 // continue; - quest objective requireme t set and command can be allowed3898 // continue; - quest objective requirement set and command can be allowed 3899 3899 } 3900 3900 … … 4070 4070 std::set<uint32>::const_iterator itr2 = evt_scripts.find(itr->first); 4071 4071 if (itr2 == evt_scripts.end()) 4072 sLog.outErrorDb("Table `event_scripts` has script (Id: %u) not refer ing to any gameobject_template type 10 data2 field or type 3 data6 field or any spell effect %u", itr->first, SPELL_EFFECT_SEND_EVENT);4072 sLog.outErrorDb("Table `event_scripts` has script (Id: %u) not referring to any gameobject_template type 10 data2 field or type 3 data6 field or any spell effect %u", itr->first, SPELL_EFFECT_SEND_EVENT); 4073 4073 } 4074 4074 } … … 4237 4237 } 4238 4238 4239 // the reset_delay must be at least one day4239 // the reset_delay must be at least one day 4240 4240 temp->reset_delay = std::max((uint32)1, (uint32)(temp->reset_delay * sWorld.getRate(RATE_INSTANCE_RESET_TIME))); 4241 4241 } … … 4538 4538 const_cast<Quest*>(quest)->SetFlag(QUEST_TRINITY_FLAGS_EXPLORATION_OR_EVENT); 4539 4539 4540 // continue; - quest modified to required ob kective and trigger can be allowed.4540 // continue; - quest modified to required objective and trigger can be allowed. 4541 4541 } 4542 4542 … … 4835 4835 4836 4836 if(!AddGraveYardLink(safeLocId,zoneId,team,false)) 4837 sLog.outErrorDb("Table `game_graveyard_zone` has a duplicate record for G arveyard (ID: %u) and Zone (ID: %u), skipped.",safeLocId,zoneId);4837 sLog.outErrorDb("Table `game_graveyard_zone` has a duplicate record for Graveyard (ID: %u) and Zone (ID: %u), skipped.",safeLocId,zoneId); 4838 4838 } while( result->NextRow() ); 4839 4839 … … 5236 5236 if(m_auctionid>=0xFFFFFFFF) 5237 5237 { 5238 sLog.outError("Auctions ids overflow!! Can't continue, shut ing down server. ");5238 sLog.outError("Auctions ids overflow!! Can't continue, shutting down server. "); 5239 5239 sWorld.m_stopEvent = true; 5240 5240 } … … 5247 5247 if(m_mailid>=0xFFFFFFFF) 5248 5248 { 5249 sLog.outError("Mail ids overflow!! Can't continue, shut ing down server. ");5249 sLog.outError("Mail ids overflow!! Can't continue, shutting down server. "); 5250 5250 sWorld.m_stopEvent = true; 5251 5251 } … … 5258 5258 if(m_ItemTextId>=0xFFFFFFFF) 5259 5259 { 5260 sLog.outError("Item text ids overflow!! Can't continue, shut ing down server. ");5260 sLog.outError("Item text ids overflow!! Can't continue, shutting down server. "); 5261 5261 sWorld.m_stopEvent = true; 5262 5262 } … … 5286 5286 if(m_hiItemGuid>=0xFFFFFFFF) 5287 5287 { 5288 sLog.outError("Item guid overflow!! Can't continue, shut ing down server. ");5288 sLog.outError("Item guid overflow!! Can't continue, shutting down server. "); 5289 5289 sWorld.m_stopEvent = true; 5290 5290 } … … 5294 5294 if(m_hiCreatureGuid>=0x00FFFFFF) 5295 5295 { 5296 sLog.outError("Creature guid overflow!! Can't continue, shut ing down server. ");5296 sLog.outError("Creature guid overflow!! Can't continue, shutting down server. "); 5297 5297 sWorld.m_stopEvent = true; 5298 5298 } … … 5302 5302 if(m_hiPetGuid>=0x00FFFFFF) 5303 5303 { 5304 sLog.outError("Pet guid overflow!! Can't continue, shut ing down server. ");5304 sLog.outError("Pet guid overflow!! Can't continue, shutting down server. "); 5305 5305 sWorld.m_stopEvent = true; 5306 5306 } … … 5310 5310 if(m_hiCharGuid>=0xFFFFFFFF) 5311 5311 { 5312 sLog.outError("Players guid overflow!! Can't continue, shut ing down server. ");5312 sLog.outError("Players guid overflow!! Can't continue, shutting down server. "); 5313 5313 sWorld.m_stopEvent = true; 5314 5314 } … … 5318 5318 if(m_hiGoGuid>=0x00FFFFFF) 5319 5319 { 5320 sLog.outError("Gameobject guid overflow!! Can't continue, shut ing down server. ");5320 sLog.outError("Gameobject guid overflow!! Can't continue, shutting down server. "); 5321 5321 sWorld.m_stopEvent = true; 5322 5322 } … … 5326 5326 if(m_hiCorpseGuid>=0xFFFFFFFF) 5327 5327 { 5328 sLog.outError("Corpse guid overflow!! Can't continue, shut ing down server. ");5328 sLog.outError("Corpse guid overflow!! Can't continue, shutting down server. "); 5329 5329 sWorld.m_stopEvent = true; 5330 5330 } … … 5334 5334 if(m_hiDoGuid>=0xFFFFFFFF) 5335 5335 { 5336 sLog.outError("DynamicObject guid overflow!! Can't continue, shut ing down server. ");5336 sLog.outError("DynamicObject guid overflow!! Can't continue, shutting down server. "); 5337 5337 sWorld.m_stopEvent = true; 5338 5338 } … … 6178 6178 } 6179 6179 6180 if(strictMask & 0x1) // basic latin6180 if(strictMask & 0x1) // basic Latin 6181 6181 { 6182 6182 if(isBasicLatinString(wstr,numericOrSpace)) … … 6512 6512 void ObjectMgr::LoadFishingBaseSkillLevel() 6513 6513 { 6514 mFishingBaseForArea.clear(); // for rel aod case6514 mFishingBaseForArea.clear(); // for reload case 6515 6515 6516 6516 uint32 count = 0; … … 6828 6828 void ObjectMgr::LoadGameTele() 6829 6829 { 6830 m_GameTeleMap.clear(); // for rel aod case6830 m_GameTeleMap.clear(); // for reload case 6831 6831 6832 6832 uint32 count = 0;