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

    r44 r78  
    679679  uint32 BuiltNumberClient; 
    680680  uint32 id, security; 
    681   bool tbc = false; 
     681  uint8 expansion = 0; 
    682682  LocaleConstant locale; 
    683683  std::string account; 
     
    729729                                "v, " //6 
    730730                                "s, " //7 
    731                                 "tbc, " //8 
     731                                "expansion, " //8 
    732732                                "mutetime, " //9 
    733733                                "locale " //10 
     
    750750  Field* fields = result->Fetch (); 
    751751 
    752   tbc = fields[8].GetUInt8 () && sWorld.getConfig (CONFIG_EXPANSION) > 0; 
     752    uint8 expansion = fields[8].GetUInt8(); 
     753    uint32 world_expansion = sWorld.getConfig(CONFIG_EXPANSION); 
     754    if(expansion > world_expansion) 
     755        expansion = world_expansion; 
    753756 
    754757  N.SetHexStr ("894B645E89E1535BBDAD5B8B290650530801B18EBFBF5E8FAB3C82872A3E9BB7"); 
     
    910913  // TODO protect here probably ? 
    911914  // Althought atm the socket is singlethreaded 
    912   ACE_NEW_RETURN (m_Session, WorldSession (id, this, security, tbc, mutetime, locale), -1); 
     915  ACE_NEW_RETURN (m_Session, WorldSession (id, this, security, expansion, mutetime, locale), -1); 
    913916 
    914917  m_Crypt.SetKey (&K);