summaryrefslogtreecommitdiff
path: root/src/net/serverinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2009-12-20 04:32:22 +0200
committerJared Adams <jaxad0127@gmail.com>2009-12-27 10:40:04 -0700
commit84adedb3f7c351fc9c4f50828c73640530b706d9 (patch)
tree6ec05d22882848e3a8933d105638bdf094be91e6 /src/net/serverinfo.h
parent5f5f174e9143dd76ea1667077d72b8433ee6d952 (diff)
downloadmana-client-84adedb3f7c351fc9c4f50828c73640530b706d9.tar.gz
mana-client-84adedb3f7c351fc9c4f50828c73640530b706d9.tar.bz2
mana-client-84adedb3f7c351fc9c4f50828c73640530b706d9.tar.xz
mana-client-84adedb3f7c351fc9c4f50828c73640530b706d9.zip
Fix double servers list in ServerDialog
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r--src/net/serverinfo.h11
1 files changed, 11 insertions, 0 deletions
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 <string>
#include <vector>
+#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<ServerInfo> ServerInfos;