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

[svn] * fixed help for subcommands - source mangos
* Renamed accounts column tbc to expansion and it only took a little over 4 hours o.O

Original author: KingPin?
Date: 2008-10-20 12:23:56-05:00

Files:
1 modified

Legend:

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

    r76 r78  
    15161516        return false; 
    15171517 
    1518     bool tbc = GetSession()->IsTBC() && sWorld.getConfig(CONFIG_EXPANSION) > 0; 
    1519  
    1520     // normal client and TBC map 
    1521     if(!tbc && mEntry->IsExpansionMap()) 
    1522     { 
    1523         sLog.outDebug("Player %s using Normal client and tried teleport to non existing map %u", GetName(), mapid); 
     1518    // client without expansion support 
     1519    if(GetSession()->Expansion() < mEntry->Expansion()) 
     1520    { 
     1521        sLog.outDebug("Player %s using client without required expansion tried teleport to non accessable map %u", GetName(), mapid); 
    15241522 
    15251523        if(GetTransport()) 
     
    15301528        return false;                                       // normal client can't teleport to this map... 
    15311529    } 
    1532     else if(tbc)                                            // can teleport to any existing map 
    1533     { 
    1534         sLog.outDebug("Player %s have TBC client and will teleported to map %u", GetName(), mapid); 
    1535     } 
    15361530    else 
    15371531    { 
    1538         sLog.outDebug("Player %s have normal client and will teleported to standard map %u", GetName(), mapid); 
    1539     } 
    1540     /* 
    1541     only TBC (no 0x80000 and 0x10 flags...) 
    1542     3604590=0x37006E=0x200000 + 0x100000 + 0x40000 + 0x20000 + 0x10000 + 0x40 + 0x20 + 0x8 + 0x4 + 0x2 
    1543  
    1544     Kharazan (normal/TBC??), but not have 0x10 flag (accessible by normal client?) 
    1545     4128878=0x3F006E=0x200000 + 0x100000 + 0x80000 + 0x40000 + 0x20000 + 0x10000 + 0x40 + 0x20 + 0x8 + 0x4 + 0x2 
    1546  
    1547     normal+TBC maps 
    1548     4128894=0x3F007E=0x200000 + 0x100000 + 0x80000 + 0x40000 + 0x20000 + 0x10000 + 0x40 + 0x20 + 0x10 + 0x8 + 0x4 + 0x2 
    1549  
    1550     normal+TBC maps 
    1551     8323198=0x7F007E=0x400000 + 0x200000 + 0x100000 + 0x80000 + 0x40000 + 0x20000 + 0x10000 + 0x40 + 0x20 + 0x10 + 0x8 + 0x4 + 0x2 
    1552     */ 
     1532        sLog.outDebug("Player %s will teleported to map %u", GetName(), mapid); 
     1533    } 
    15531534 
    15541535    // if we were on a transport, leave