summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-24 15:43:15 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-24 15:43:15 +0300
commit2e64d3f76e9ad4233f2dd7e95625a73660c2f116 (patch)
treed4fccd2c22c9248a35842351d0f5ba88701be90c /src/net
parent25706e4ab74f3ec3fbacde3dac25f421f5ada279 (diff)
downloadplus-2e64d3f76e9ad4233f2dd7e95625a73660c2f116.tar.gz
plus-2e64d3f76e9ad4233f2dd7e95625a73660c2f116.tar.bz2
plus-2e64d3f76e9ad4233f2dd7e95625a73660c2f116.tar.xz
plus-2e64d3f76e9ad4233f2dd7e95625a73660c2f116.zip
Add server feature haveExpPacket.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/serverfeatures.cpp5
-rw-r--r--src/net/eathena/serverfeatures.h2
-rw-r--r--src/net/serverfeatures.h2
-rw-r--r--src/net/tmwa/serverfeatures.cpp5
-rw-r--r--src/net/tmwa/serverfeatures.h2
5 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp
index 7689ebc2b..c4e53dd42 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -220,4 +220,9 @@ bool ServerFeatures::haveServerWarpNames() const
return serverVersion == 0;
}
+bool ServerFeatures::haveExpPacket() const
+{
+ return true;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index eff1cc439..a60c67ee5 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -107,6 +107,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveMovePet() const override final;
bool haveServerWarpNames() const override final;
+
+ bool haveExpPacket() const override final;
};
} // namespace EAthena
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index bc860e233..1ae9a2933 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -104,6 +104,8 @@ class ServerFeatures notfinal
virtual bool haveMovePet() const = 0;
virtual bool haveServerWarpNames() const = 0;
+
+ virtual bool haveExpPacket() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index be0b5ff59..4c57c7d1e 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -219,4 +219,9 @@ bool ServerFeatures::haveServerWarpNames() const
return false;
}
+bool ServerFeatures::haveExpPacket() const
+{
+ return false;
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index a570b1a52..f30cdbd20 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -107,6 +107,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveMovePet() const override final;
bool haveServerWarpNames() const override final;
+
+ bool haveExpPacket() const override final;
};
} // namespace TmwAthena