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

[svn] Fix some typos.

Original author: megamage
Date: 2008-11-10 17:19:35-06:00

Files:
1 modified

Legend:

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

    r207 r209  
    1111 * This program is distributed in the hope that it will be useful, 
    1212 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1414 * GNU General Public License for more details. 
    1515 * 
    1616 * You should have received a copy of the GNU General Public License 
    1717 * along with this program; if not, write to the Free Software 
    18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
    1919 */ 
    2020 
     
    147147    wstrToLower(wguild_name); 
    148148 
    149     // client send in case not set max level value 100 but Trinity support 255 max level, 
     149    // client send in case not set max level value 100 but mangos support 255 max level, 
    150150    // update it to show GMs with characters after 100 level 
    151151    if(level_max >= 100) 
     
    470470    std::string friendName = GetTrinityString(LANG_FRIEND_IGNORE_UNKNOWN); 
    471471    std::string friendNote; 
    472      
     472 
    473473    recv_data >> friendName; 
    474474 
     
    493493    if(!result) 
    494494        return; 
    495          
     495 
    496496    uint64 friendGuid = MAKE_NEW_GUID((*result)[0].GetUInt32(), 0, HIGHGUID_PLAYER); 
    497497    uint32 team = Player::TeamForRace((*result)[1].GetUInt8()); 
    498      
     498 
    499499    delete result; 
    500      
     500 
    501501    WorldSession * session = sWorld.FindSession(accountId); 
    502502    if(!session) 
    503503        return; 
    504          
     504 
    505505    FriendsResult friendResult = FRIEND_NOT_FOUND; 
    506506    if(friendGuid) 
     
    519519            else 
    520520                friendResult = FRIEND_ADDED_OFFLINE; 
    521                  
    522         if(!session->GetPlayer()->GetSocial()->AddToSocialList(GUID_LOPART(friendGuid), false)) 
    523         { 
    524             friendResult = FRIEND_LIST_FULL; 
    525             sLog.outDebug( "WORLD: %s's friend list is full.", session->GetPlayer()->GetName()); 
    526         } 
     521 
     522            if(!session->GetPlayer()->GetSocial()->AddToSocialList(GUID_LOPART(friendGuid), false)) 
     523            { 
     524                friendResult = FRIEND_LIST_FULL; 
     525                sLog.outDebug( "WORLD: %s's friend list is full.", session->GetPlayer()->GetName()); 
     526            } 
    527527 
    528528            session->GetPlayer()->GetSocial()->SetFriendNote(GUID_LOPART(friendGuid), friendNote); 
     
    577577    if(!result) 
    578578        return; 
    579      
     579 
    580580    uint64 IgnoreGuid = MAKE_NEW_GUID((*result)[0].GetUInt32(), 0, HIGHGUID_PLAYER); 
    581      
     581 
    582582    delete result; 
    583      
     583 
    584584    WorldSession * session = sWorld.FindSession(accountId); 
    585585    if(!session) 
    586586        return; 
    587          
     587 
    588588    FriendsResult ignoreResult = FRIEND_IGNORE_NOT_FOUND; 
    589589    if(IgnoreGuid) 
     
    591591        if(IgnoreGuid==session->GetPlayer()->GetGUID())              //not add yourself 
    592592            ignoreResult = FRIEND_IGNORE_SELF; 
    593             else if( session->GetPlayer()->GetSocial()->HasIgnore(GUID_LOPART(IgnoreGuid)) ) 
    594                 ignoreResult = FRIEND_IGNORE_ALREADY; 
     593        else if( session->GetPlayer()->GetSocial()->HasIgnore(GUID_LOPART(IgnoreGuid)) ) 
     594            ignoreResult = FRIEND_IGNORE_ALREADY; 
    595595        else 
    596596        { 
    597597            ignoreResult = FRIEND_IGNORE_ADDED; 
    598598 
    599         // ignore list full 
    600         if(!session->GetPlayer()->GetSocial()->AddToSocialList(GUID_LOPART(IgnoreGuid), true)) 
    601             ignoreResult = FRIEND_IGNORE_FULL; 
     599            // ignore list full 
     600            if(!session->GetPlayer()->GetSocial()->AddToSocialList(GUID_LOPART(IgnoreGuid), true)) 
     601                ignoreResult = FRIEND_IGNORE_FULL; 
    602602        } 
    603603    } 
     
    794794            (fabs(dz) > atEntry->box_z/2 + delta) ) 
    795795        { 
    796             sLog.outDebug("Player '%s' (GUID: %u) too far (1/2 box X: %f 1/2 box Y: %u 1/2 box Z: %u rotate dX: %f rotate dY: %f dZ:%f), ignore Area Trigger ID: %u", 
     796            sLog.outDebug("Player '%s' (GUID: %u) too far (1/2 box X: %f 1/2 box Y: %f 1/2 box Z: %f rotate dX: %f rotate dY: %f dZ:%f), ignore Area Trigger ID: %u", 
    797797                pl->GetName(), pl->GetGUIDLow(), atEntry->box_x/2, atEntry->box_y/2, atEntry->box_z/2, rotateDx, rotateDy, dz, Trigger_ID); 
    798798            return;