summaryrefslogtreecommitdiffstats
path: root/src/game-server/main-game.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-10 20:29:58 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-11 22:28:13 +0100
commit3c828c4c7448353858a80d1c60e47d125ed3d3e4 (patch)
tree1ba38fa3f7b0a4536c0a005ab3fbbde682a34d7f /src/game-server/main-game.cpp
parentd65dfcfa04a622effcd4cebdfaa5e713ca7627d8 (diff)
downloadmanaserv-3c828c4c7448353858a80d1c60e47d125ed3d3e4.tar.gz
manaserv-3c828c4c7448353858a80d1c60e47d125ed3d3e4.tar.xz
manaserv-3c828c4c7448353858a80d1c60e47d125ed3d3e4.zip
Made the servers report their protocol version.
As the protocol version isn't something the maintainers should set, I removed the net_clientVersion irrelevant option, replaced by the corresponding define PROTOCOL_VERSION in the manaserv_protocol.h file. A corresponding change in the client will be made. N.B.: Now, the Enet version is also reported in the log. Reviewed-by: Jaxad.
Diffstat (limited to 'src/game-server/main-game.cpp')
-rw-r--r--src/game-server/main-game.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp
index 182e459..682148b 100644
--- a/src/game-server/main-game.cpp
+++ b/src/game-server/main-game.cpp
@@ -368,6 +368,9 @@ int main(int argc, char *argv[])
#else
LOG_INFO("The Mana Game Server (unknown version)");
#endif
+ LOG_INFO("Manaserv Protocol version " << ManaServ::PROTOCOL_VERSION
+ << ", " << "Enet version " << ENET_VERSION_MAJOR << "."
+ << ENET_VERSION_MINOR << "." << ENET_VERSION_PATCH);
if (!options.verbosityChanged)
options.verbosity = static_cast<Logger::Level>(