From 84adedb3f7c351fc9c4f50828c73640530b706d9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 20 Dec 2009 04:32:22 +0200 Subject: Fix double servers list in ServerDialog --- src/net/serverinfo.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/net') diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h index 82d11fec..25b4e9a8 100644 --- a/src/net/serverinfo.h +++ b/src/net/serverinfo.h @@ -25,6 +25,8 @@ #include #include +#include "utils/stringutils.h" + class ServerInfo { public: @@ -72,6 +74,15 @@ public: return (type != other.type || hostname != other.hostname || port != other.port); } + + Type static getCurrentType() + { +#ifdef MANASERV_SUPPORT + return MANASERV; +#else + return EATHENA; +#endif + } }; typedef std::vector ServerInfos; -- cgit v1.2.3-70-g09d2