mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
Make RealmList proper singleton in realmd.
This commit is contained in:
parent
1f23884757
commit
6abf7e7f58
4 changed files with 14 additions and 8 deletions
|
|
@ -32,8 +32,6 @@
|
|||
#include "Auth/Sha1.h"
|
||||
//#include "Util.h" -- for commented utf8ToUpperOnlyLatin
|
||||
|
||||
extern RealmList m_realmList;
|
||||
|
||||
extern DatabaseType loginDatabase;
|
||||
|
||||
#define ChunkSize 2048
|
||||
|
|
@ -881,14 +879,14 @@ bool AuthSocket::_HandleRealmList()
|
|||
delete result;
|
||||
|
||||
///- Update realm list if need
|
||||
m_realmList.UpdateIfNeed();
|
||||
RealmList::Instance().UpdateIfNeed();
|
||||
|
||||
///- Circle through realms in the RealmList and construct the return packet (including # of user characters in each realm)
|
||||
ByteBuffer pkt;
|
||||
pkt << (uint32) 0;
|
||||
pkt << (uint16) m_realmList.size();
|
||||
pkt << (uint16) RealmList::Instance().size();
|
||||
RealmList::RealmMap::const_iterator i;
|
||||
for( i = m_realmList.begin(); i != m_realmList.end(); ++i )
|
||||
for( i = RealmList::Instance().begin(); i != RealmList::Instance().end(); ++i )
|
||||
{
|
||||
uint8 AmountOfCharacters;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue