diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-03-12 22:19:19 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-03-13 21:30:22 +0100 |
commit | 403472f7ad18c909e5917918ca5d93d2bb11f308 (patch) | |
tree | e44512188254e6d13fe4957b5428699d55ed6184 | |
parent | 53cf65f40c64a0d2ea8757390179127222faa258 (diff) | |
download | manaserv-403472f7ad18c909e5917918ca5d93d2bb11f308.tar.gz manaserv-403472f7ad18c909e5917918ca5d93d2bb11f308.tar.bz2 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
-rw-r--r-- | src/account-server/serverhandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<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 { |