diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-05-13 19:57:49 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-05-16 23:25:35 +0200 |
commit | 32a27a534582b63324444b4650f08637834232fd (patch) | |
tree | 9e7f349f948864e551711a8c479a24cb0496f387 /src/account-server/serverhandler.cpp | |
parent | 1e164776a737b57c54a71f6eab8f93263146b089 (diff) | |
download | manaserv-32a27a534582b63324444b4650f08637834232fd.tar.gz manaserv-32a27a534582b63324444b4650f08637834232fd.tar.bz2 manaserv-32a27a534582b63324444b4650f08637834232fd.tar.xz manaserv-32a27a534582b63324444b4650f08637834232fd.zip |
Random cleanups, adding const, removing unnecessary clear calls
Reviewed-by: Jared Adams
Diffstat (limited to 'src/account-server/serverhandler.cpp')
-rw-r--r-- | src/account-server/serverhandler.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/account-server/serverhandler.cpp b/src/account-server/serverhandler.cpp index b4037633..a6cf21f0 100644 --- a/src/account-server/serverhandler.cpp +++ b/src/account-server/serverhandler.cpp @@ -133,8 +133,9 @@ static GameServer *getGameServerFromMap(int mapId) return NULL; } -bool GameServerHandler::getGameServerFromMap - (int mapId, std::string &address, int &port) +bool GameServerHandler::getGameServerFromMap(int mapId, + std::string &address, + int &port) { if (GameServer *s = ::getGameServerFromMap(mapId)) { @@ -513,7 +514,9 @@ void GameServerHandler::dumpStatistics(std::ostream &os) i_end = serverHandler->clients.end(); i != i_end; ++i) { GameServer *server = static_cast< GameServer * >(*i); - if (!server->port) continue; + if (!server->port) + continue; + os << "<gameserver address=\"" << server->address << "\" port=\"" << server->port << "\">\n"; |