mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
Merge commit 'origin/master' into 320
Conflicts: src/game/DBCStructure.h src/game/DBCfmt.h src/game/MiscHandler.cpp src/game/ObjectMgr.cpp
This commit is contained in:
commit
4a8431f581
51 changed files with 739 additions and 612 deletions
|
|
@ -112,8 +112,9 @@ World::~World()
|
|||
|
||||
m_weathers.clear();
|
||||
|
||||
while (!cliCmdQueue.empty())
|
||||
delete cliCmdQueue.next();
|
||||
CliCommandHolder* command;
|
||||
while (cliCmdQueue.next(command))
|
||||
delete command;
|
||||
|
||||
VMAP::VMapFactory::clear();
|
||||
|
||||
|
|
@ -2004,11 +2005,9 @@ void World::SendServerMessage(ServerMessageType type, const char *text, Player*
|
|||
void World::UpdateSessions( uint32 diff )
|
||||
{
|
||||
///- Add new sessions
|
||||
while(!addSessQueue.empty())
|
||||
{
|
||||
WorldSession* sess = addSessQueue.next ();
|
||||
WorldSession* sess;
|
||||
while(addSessQueue.next(sess))
|
||||
AddSession_ (sess);
|
||||
}
|
||||
|
||||
///- Then send an update signal to remaining ones
|
||||
for (SessionMap::iterator itr = m_sessions.begin(), next; itr != m_sessions.end(); itr = next)
|
||||
|
|
@ -2032,25 +2031,20 @@ void World::UpdateSessions( uint32 diff )
|
|||
// This handles the issued and queued CLI commands
|
||||
void World::ProcessCliCommands()
|
||||
{
|
||||
if (cliCmdQueue.empty())
|
||||
return;
|
||||
CliCommandHolder::Print* zprint = NULL;
|
||||
|
||||
CliCommandHolder::Print* zprint;
|
||||
|
||||
while (!cliCmdQueue.empty())
|
||||
CliCommandHolder* command;
|
||||
while (cliCmdQueue.next(command))
|
||||
{
|
||||
sLog.outDebug("CLI command under processing...");
|
||||
CliCommandHolder *command = cliCmdQueue.next();
|
||||
|
||||
zprint = command->m_print;
|
||||
|
||||
CliHandler(zprint).ParseCommands(command->m_command);
|
||||
|
||||
delete command;
|
||||
}
|
||||
|
||||
// print the console message here so it looks right
|
||||
zprint("mangos>");
|
||||
if (zprint)
|
||||
zprint("mangos>");
|
||||
}
|
||||
|
||||
void World::InitResultQueue()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue