[Server] Code style

This commit is contained in:
Koncord 2018-02-16 12:17:29 +08:00
parent 44c549211e
commit e85d0db771

View file

@ -114,9 +114,11 @@ void GUI::onGUIAction()
auto mbox = std::move(guiQueue.front().first); auto mbox = std::move(guiQueue.front().first);
auto callback = std::move(guiQueue.front().second); auto callback = std::move(guiQueue.front().second);
guiQueue.pop(); guiQueue.pop();
if(!guiQueue.empty())
if (!guiQueue.empty())
setChanged(); setChanged();
if(player->guiMessageBox.id != mbox.id)
if (player->guiMessageBox.id != mbox.id)
{ {
LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, "Wrong MessageBox id from %s(%d).", player->npc.mName, player->getId()); LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, "Wrong MessageBox id from %s(%d).", player->npc.mName, player->getId());
return; return;