summaryrefslogtreecommitdiffstats
path: root/src/account-server
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-03-12 22:19:19 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-03-13 21:30:22 +0100
commit403472f7ad18c909e5917918ca5d93d2bb11f308 (patch)
treee44512188254e6d13fe4957b5428699d55ed6184 /src/account-server
parent53cf65f40c64a0d2ea8757390179127222faa258 (diff)
downloadmanaserv-403472f7ad18c909e5917918ca5d93d2bb11f308.tar.gz
manaserv-403472f7ad18c909e5917918ca5d93d2bb11f308.tar.xz
manaserv-403472f7ad18c909e5917918ca5d93d2bb11f308.zip
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
Diffstat (limited to 'src/account-server')
-rw-r--r--src/account-server/serverhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/account-server/serverhandler.cpp b/src/account-server/serverhandler.cpp
index 041e8e6..c5104b8 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<std::string, std::string> variables;
@@ -217,6 +216,8 @@ void ServerHandler::processMessage(NetComputer *comp, MessageIn &msg)
outMsg.writeString(i->first);
outMsg.writeString(i->second);
}
+
+ comp->send(outMsg);
}
else
{