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/Creature.cpp

    r193 r229  
    337337    { 
    338338        case JUST_ALIVED: 
    339             // Dont must be called, see Creature::setDeathState JUST_ALIVED -> ALIVE promoting. 
     339            // Don't must be called, see Creature::setDeathState JUST_ALIVED -> ALIVE promoting. 
    340340            sLog.outError("Creature (GUIDLow: %u Entry: %u ) in wrong state: JUST_ALIVED (4)",GetGUIDLow(),GetEntry()); 
    341341            break; 
    342342        case JUST_DIED: 
    343             // Dont must be called, see Creature::setDeathState JUST_DIED -> CORPSE promoting. 
     343            // Don't must be called, see Creature::setDeathState JUST_DIED -> CORPSE promoting. 
    344344            sLog.outError("Creature (GUIDLow: %u Entry: %u ) in wrong state: JUST_DEAD (1)",GetGUIDLow(),GetEntry()); 
    345345            break; 
     
    507507    uint32 addvalue = 0; 
    508508 
    509     // Not only pet, but any controelled creature 
     509    // Not only pet, but any controlled creature 
    510510    if(GetCharmerOrOwnerGUID()) 
    511511    { 
     
    864864 
    865865    // in case non empty gossip menu (that not included quests list size) show it 
    866     // (quest entries from quest menu wiill be included in list) 
     866    // (quest entries from quest menu will be included in list) 
    867867    player->PlayerTalkClass->SendGossipMenu(GetNpcTextId(), GetGUID()); 
    868868} 
     
    11481148{ 
    11491149    // this should only be used when the creature has already been loaded 
    1150     // perferably after adding to map, because mapid may not be valid otherwise 
     1150    // preferably after adding to map, because mapid may not be valid otherwise 
    11511151    CreatureData const *data = objmgr.GetCreatureData(m_DBTableGuid); 
    11521152    if(!data) 
     
    15571557    float RetDistance = 20; 
    15581558 
    1559     // "Aggro Radius varries with level difference at a rate of roughly 1 yard/level" 
     1559    // "Aggro Radius varies with level difference at a rate of roughly 1 yard/level" 
    15601560    // radius grow if playlevel < creaturelevel 
    15611561    RetDistance -= (float)leveldif; 
     
    15841584 
    15851585        // always save boss respawn time at death to prevent crash cheating 
    1586         if(sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATLY) || isWorldBoss()) 
     1586        if(sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY) || isWorldBoss()) 
    15871587            SaveRespawnTime(); 
    15881588 
     
    18761876        return true; 
    18771877 
    1878     if(!pVictim->isInAccessablePlaceFor(this)) 
     1878    if(!pVictim->isInAccessiblePlaceFor(this)) 
    18791879        return true; 
    18801880 
     
    18861886    uint32 ThreatRadius = sWorld.getConfig(CONFIG_THREAT_RADIUS); 
    18871887 
    1888     //Use AttackDistance in distance check if threat radius is lower. This prevents creature bounce in and ouf of combat every update tick. 
     1888    //Use AttackDistance in distance check if threat radius is lower. This prevents creature bounce in and out of combat every update tick. 
    18891889    return ( length > (ThreatRadius > AttackDist ? ThreatRadius : AttackDist)); 
    18901890} 
     
    19551955} 
    19561956 
    1957 /// Send a message to LocalDefense channel for players oposition team in the zone 
     1957/// Send a message to LocalDefense channel for players opposition team in the zone 
    19581958void Creature::SendZoneUnderAttackMessage(Player* attacker) 
    19591959{