Changeset 78 for trunk/src/game/WorldSocket.cpp
- Timestamp:
- 11/19/08 13:32:10 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/WorldSocket.cpp
r44 r78 679 679 uint32 BuiltNumberClient; 680 680 uint32 id, security; 681 bool tbc = false;681 uint8 expansion = 0; 682 682 LocaleConstant locale; 683 683 std::string account; … … 729 729 "v, " //6 730 730 "s, " //7 731 " tbc, " //8731 "expansion, " //8 732 732 "mutetime, " //9 733 733 "locale " //10 … … 750 750 Field* fields = result->Fetch (); 751 751 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; 753 756 754 757 N.SetHexStr ("894B645E89E1535BBDAD5B8B290650530801B18EBFBF5E8FAB3C82872A3E9BB7"); … … 910 913 // TODO protect here probably ? 911 914 // 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); 913 916 914 917 m_Crypt.SetKey (&K);