summaryrefslogtreecommitdiff
path: root/src/net/serverinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-22 18:59:41 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-22 18:59:41 +0300
commit1cf6cb343c6c8df8a998c617fd6f8d40f5affbea (patch)
treed5e090e99c02a0ce70d00c4dc527d777881cd83c /src/net/serverinfo.h
parentf20c99d2bffe798806790e1f1ae838bba494d93c (diff)
downloadmanaplus-1cf6cb343c6c8df8a998c617fd6f8d40f5affbea.tar.gz
manaplus-1cf6cb343c6c8df8a998c617fd6f8d40f5affbea.tar.bz2
manaplus-1cf6cb343c6c8df8a998c617fd6f8d40f5affbea.tar.xz
manaplus-1cf6cb343c6c8df8a998c617fd6f8d40f5affbea.zip
Add support for packet version in servers list xml and in editor.
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r--src/net/serverinfo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h
index 3ef8243fc..85d0f6bdd 100644
--- a/src/net/serverinfo.h
+++ b/src/net/serverinfo.h
@@ -45,6 +45,7 @@ class ServerInfo final
std::vector<std::string> updateMirrors;
uint16_t port;
VersionString version;
+ int packetVersion;
bool save;
bool persistentIp;
@@ -64,6 +65,7 @@ class ServerInfo final
port(6900),
#endif
version(),
+ packetVersion(),
save(false),
persistentIp(true)
{
@@ -82,6 +84,7 @@ class ServerInfo final
updateMirrors(info.updateMirrors),
port(info.port),
version(),
+ packetVersion(info.packetVersion),
save(info.save),
persistentIp(info.persistentIp)
{
@@ -105,6 +108,7 @@ class ServerInfo final
persistentIp = info.persistentIp;
version.first = info.version.first;
version.second = info.version.second;
+ packetVersion = info.packetVersion;
return *this;
}
@@ -129,6 +133,7 @@ class ServerInfo final
updateMirrors.clear();
version.first = 0;
version.second.clear();
+ packetVersion = 0;
save = false;
persistentIp = true;
}