diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-07 18:06:29 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-07 18:06:29 +0000 |
commit | d213cdea38ae5dda3c1cbdc6c85a2c5fe04e9399 (patch) | |
tree | 2ae7c7abd8fdedb2e6ec5610718834d9a92a467f /src/game-server/accountconnection.cpp | |
parent | 04e694b067a21dee8e13368c17d1815cc0624ce4 (diff) | |
download | manaserv-d213cdea38ae5dda3c1cbdc6c85a2c5fe04e9399.tar.gz manaserv-d213cdea38ae5dda3c1cbdc6c85a2c5fe04e9399.tar.bz2 manaserv-d213cdea38ae5dda3c1cbdc6c85a2c5fe04e9399.tar.xz manaserv-d213cdea38ae5dda3c1cbdc6c85a2c5fe04e9399.zip |
Singleton managers do not need stateful classes. Changed them to namespace interfaces.
Diffstat (limited to 'src/game-server/accountconnection.cpp')
-rw-r--r-- | src/game-server/accountconnection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/accountconnection.cpp b/src/game-server/accountconnection.cpp index fa097921..3bdd971c 100644 --- a/src/game-server/accountconnection.cpp +++ b/src/game-server/accountconnection.cpp @@ -48,7 +48,7 @@ bool AccountConnection::start() MessageOut msg(GAMSG_REGISTER); msg.writeString(config.getValue("gameServerAddress", "localhost")); msg.writeShort(int(config.getValue("gameServerPort", DEFAULT_SERVER_PORT + 3))); - MapManager::Maps const &m = mapManager->getMaps(); + MapManager::Maps const &m = MapManager::getMaps(); for (MapManager::Maps::const_iterator i = m.begin(), i_end = m.end(); i != i_end; ++i) { msg.writeShort(i->first); @@ -81,7 +81,7 @@ void AccountConnection::processMessage(MessageIn &msg) case AGMSG_ACTIVE_MAP: { int id = msg.readShort(); - mapManager->raiseActive(id); + MapManager::raiseActive(id); } break; case AGMSG_REDIRECT_RESPONSE: |