Show
Ignore:
Timestamp:
11/19/08 13:48:34 (17 years ago)
Author:
yumileroy
Message:

[svn] *** Source: MaNGOS ***
* Fixed build extractor at Windows Vista. Author: Vladimir
* Fixed comment text and code indentifiers spelling. Author: Vladimir & Paradox.
* Access cached member lists in guild handlers instead of querying the DB. Author: Hunuza
* Small fixes in send/received packet and simple code cleanup also. Author: Vladimir
* Not output error at loading empty character_ticket table. Author: Vladimir
* Not reset display model at shapeshift aura remove if it not set at apply. Author: Arthorius
* Applied props to few files.

Original author: visagalis
Date: 2008-11-14 16:28:45-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/ObjectMgr.cpp

    r207 r229  
    893893    } 
    894894 
    895     // replace by new strucutres array 
     895    // replace by new structures array 
    896896    const_cast<CreatureDataAddonAura*&>(addon->auras) = new CreatureDataAddonAura[val.size()/2+1]; 
    897897 
     
    31333133                sLog.outErrorDb("Quest %u has `SrcItemId` = %u but `SrcItemCount` = 0, set to 1 but need fix in DB.", 
    31343134                    qinfo->GetQuestId(),qinfo->SrcItemId); 
    3135                 qinfo->SrcItemCount = 1;                    // update to 1 for allow quest work for backward comptibility with DB 
     3135                qinfo->SrcItemCount = 1;                    // update to 1 for allow quest work for backward compatibility with DB 
    31363136            } 
    31373137        } 
     
    35363536            Quest const* quest = GetQuestTemplate(quest_id); 
    35373537 
    3538             // some quest referenced in spells not exist (outdataed spells) 
     3538            // some quest referenced in spells not exist (outdated spells) 
    35393539            if(!quest) 
    35403540                continue; 
     
    38963896                    const_cast<Quest*>(quest)->SetFlag(QUEST_TRINITY_FLAGS_EXPLORATION_OR_EVENT); 
    38973897 
    3898                     // continue; - quest objective requiremet set and command can be allowed 
     3898                    // continue; - quest objective requirement set and command can be allowed 
    38993899                } 
    39003900 
     
    40704070        std::set<uint32>::const_iterator itr2 = evt_scripts.find(itr->first); 
    40714071        if (itr2 == evt_scripts.end()) 
    4072             sLog.outErrorDb("Table `event_scripts` has script (Id: %u) not refering 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); 
    40734073    } 
    40744074} 
     
    42374237        } 
    42384238 
    4239         // the reset_delay must be atleast one day 
     4239        // the reset_delay must be at least one day 
    42404240        temp->reset_delay = std::max((uint32)1, (uint32)(temp->reset_delay * sWorld.getRate(RATE_INSTANCE_RESET_TIME))); 
    42414241    } 
     
    45384538            const_cast<Quest*>(quest)->SetFlag(QUEST_TRINITY_FLAGS_EXPLORATION_OR_EVENT); 
    45394539 
    4540             // continue; - quest modified to required obkective and trigger can be allowed. 
     4540            // continue; - quest modified to required objective and trigger can be allowed. 
    45414541        } 
    45424542 
     
    48354835 
    48364836        if(!AddGraveYardLink(safeLocId,zoneId,team,false)) 
    4837             sLog.outErrorDb("Table `game_graveyard_zone` has a duplicate record for Garveyard (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); 
    48384838    } while( result->NextRow() ); 
    48394839 
     
    52365236    if(m_auctionid>=0xFFFFFFFF) 
    52375237    { 
    5238         sLog.outError("Auctions ids overflow!! Can't continue, shuting down server. "); 
     5238        sLog.outError("Auctions ids overflow!! Can't continue, shutting down server. "); 
    52395239        sWorld.m_stopEvent = true; 
    52405240    } 
     
    52475247    if(m_mailid>=0xFFFFFFFF) 
    52485248    { 
    5249         sLog.outError("Mail ids overflow!! Can't continue, shuting down server. "); 
     5249        sLog.outError("Mail ids overflow!! Can't continue, shutting down server. "); 
    52505250        sWorld.m_stopEvent = true; 
    52515251    } 
     
    52585258    if(m_ItemTextId>=0xFFFFFFFF) 
    52595259    { 
    5260         sLog.outError("Item text ids overflow!! Can't continue, shuting down server. "); 
     5260        sLog.outError("Item text ids overflow!! Can't continue, shutting down server. "); 
    52615261        sWorld.m_stopEvent = true; 
    52625262    } 
     
    52865286            if(m_hiItemGuid>=0xFFFFFFFF) 
    52875287            { 
    5288                 sLog.outError("Item guid overflow!! Can't continue, shuting down server. "); 
     5288                sLog.outError("Item guid overflow!! Can't continue, shutting down server. "); 
    52895289                sWorld.m_stopEvent = true; 
    52905290            } 
     
    52945294            if(m_hiCreatureGuid>=0x00FFFFFF) 
    52955295            { 
    5296                 sLog.outError("Creature guid overflow!! Can't continue, shuting down server. "); 
     5296                sLog.outError("Creature guid overflow!! Can't continue, shutting down server. "); 
    52975297                sWorld.m_stopEvent = true; 
    52985298            } 
     
    53025302            if(m_hiPetGuid>=0x00FFFFFF) 
    53035303            { 
    5304                 sLog.outError("Pet guid overflow!! Can't continue, shuting down server. "); 
     5304                sLog.outError("Pet guid overflow!! Can't continue, shutting down server. "); 
    53055305                sWorld.m_stopEvent = true; 
    53065306            } 
     
    53105310            if(m_hiCharGuid>=0xFFFFFFFF) 
    53115311            { 
    5312                 sLog.outError("Players guid overflow!! Can't continue, shuting down server. "); 
     5312                sLog.outError("Players guid overflow!! Can't continue, shutting down server. "); 
    53135313                sWorld.m_stopEvent = true; 
    53145314            } 
     
    53185318            if(m_hiGoGuid>=0x00FFFFFF) 
    53195319            { 
    5320                 sLog.outError("Gameobject guid overflow!! Can't continue, shuting down server. "); 
     5320                sLog.outError("Gameobject guid overflow!! Can't continue, shutting down server. "); 
    53215321                sWorld.m_stopEvent = true; 
    53225322            } 
     
    53265326            if(m_hiCorpseGuid>=0xFFFFFFFF) 
    53275327            { 
    5328                 sLog.outError("Corpse guid overflow!! Can't continue, shuting down server. "); 
     5328                sLog.outError("Corpse guid overflow!! Can't continue, shutting down server. "); 
    53295329                sWorld.m_stopEvent = true; 
    53305330            } 
     
    53345334            if(m_hiDoGuid>=0xFFFFFFFF) 
    53355335            { 
    5336                 sLog.outError("DynamicObject guid overflow!! Can't continue, shuting down server. "); 
     5336                sLog.outError("DynamicObject guid overflow!! Can't continue, shutting down server. "); 
    53375337                sWorld.m_stopEvent = true; 
    53385338            } 
     
    61786178    } 
    61796179 
    6180     if(strictMask & 0x1)                                    // basic latin 
     6180    if(strictMask & 0x1)                                    // basic Latin 
    61816181    { 
    61826182        if(isBasicLatinString(wstr,numericOrSpace)) 
     
    65126512void ObjectMgr::LoadFishingBaseSkillLevel() 
    65136513{ 
    6514     mFishingBaseForArea.clear();                            // for relaod case 
     6514    mFishingBaseForArea.clear();                            // for reload case 
    65156515 
    65166516    uint32 count = 0; 
     
    68286828void ObjectMgr::LoadGameTele() 
    68296829{ 
    6830     m_GameTeleMap.clear();                                  // for relaod case 
     6830    m_GameTeleMap.clear();                                  // for reload case 
    68316831 
    68326832    uint32 count = 0;