diff options
author | joschiwald <joschiwald.trinity@gmail.com> | 2014-04-26 03:40:30 +0200 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2014-04-26 03:40:30 +0200 |
commit | 211d56d6337788b1268c5d89d41e20955d17272c (patch) | |
tree | 4ae3043e29b0ae40744a88edef1847d165b03452 /src/server/game/Globals/ObjectMgr.cpp | |
parent | b1d1d65506b85cd6a42cb6a3f41318eadc2e1572 (diff) |
Core/BG/SA:
* replaced some trinity_string with broadcasttexts
* basic implementation of phasing in SA
* spawn some triggers in SA (fixes dest position of teleport pads)
* added text getter to broadcasttext struct
* some cleanup in destructable go event notification
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r-- | src/server/game/Globals/ObjectMgr.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index e37513d0917..fce89b22b53 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -8586,6 +8586,7 @@ void ObjectMgr::LoadBroadcastTexts() return; } + _broadcastTextStore.rehash(result->GetRowCount()); uint32 count = 0; do @@ -8723,19 +8724,6 @@ void ObjectMgr::LoadDbScriptStrings() TC_LOG_ERROR("sql.sql", "Table `db_script_string` has unused string id %u", *itr); } -bool LoadTrinityStrings(const char* table, int32 start_value, int32 end_value) -{ - // MAX_DB_SCRIPT_STRING_ID is max allowed negative value for scripts (scrpts can use only more deep negative values - // start/end reversed for negative values - if (start_value > MAX_DB_SCRIPT_STRING_ID || end_value >= start_value) - { - TC_LOG_ERROR("sql.sql", "Table '%s' load attempted with range (%d - %d) reserved by Trinity, strings not loaded.", table, start_value, end_value+1); - return false; - } - - return sObjectMgr->LoadTrinityStrings(table, start_value, end_value); -} - CreatureBaseStats const* ObjectMgr::GetCreatureBaseStats(uint8 level, uint8 unitClass) { CreatureBaseStatsContainer::const_iterator it = _creatureBaseStatsStore.find(MAKE_PAIR16(level, unitClass)); |