From 403472f7ad18c909e5917918ca5d93d2bb11f308 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Mon, 12 Mar 2012 22:19:19 +0100 Subject: Fixed initial sending of global world variables to the game server The AGMSG_REGISTER_RESPONSE message should be sent _after_ adding the global world state variables to it rather than before. Reviewed-by: Yohann Ferreira --- src/account-server/serverhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/account-server/serverhandler.cpp b/src/account-server/serverhandler.cpp index 041e8e61..c5104b8f 100644 --- a/src/account-server/serverhandler.cpp +++ b/src/account-server/serverhandler.cpp @@ -205,7 +205,6 @@ void ServerHandler::processMessage(NetComputer *comp, MessageIn &msg) if (password == Configuration::getValue("net_password", "changeMe")) { outMsg.writeInt16(PASSWORD_OK); - comp->send(outMsg); // transmit global world state variables std::map variables; @@ -217,6 +216,8 @@ void ServerHandler::processMessage(NetComputer *comp, MessageIn &msg) outMsg.writeString(i->first); outMsg.writeString(i->second); } + + comp->send(outMsg); } else { -- cgit v1.2.3-70-g09d2