summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-23 12:55:57 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-23 12:55:57 +0300
commit12e34e45e0e1c8c1d1116680a71ae4d7c99a4fae (patch)
tree88edd4e66f87ce73c60250481f35f5dbb7e470d7
parenta5a533750353cc05e91211a4dfec4e7dd020d7ac (diff)
downloadmv-12e34e45e0e1c8c1d1116680a71ae4d7c99a4fae.tar.gz
mv-12e34e45e0e1c8c1d1116680a71ae4d7c99a4fae.tar.bz2
mv-12e34e45e0e1c8c1d1116680a71ae4d7c99a4fae.tar.xz
mv-12e34e45e0e1c8c1d1116680a71ae4d7c99a4fae.zip
Add server feature haveCart.
-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 2afce81c3..ab458d052 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -200,4 +200,9 @@ bool ServerFeatures::haveVending() const
return true;
}
+bool ServerFeatures::haveCart() const
+{
+ return true;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index 75fbf1b8e..6406074ff 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -99,6 +99,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveAttackDirections() const override final;
bool haveVending() const override final;
+
+ bool haveCart() const override final;
};
} // namespace EAthena
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index bb6c3ada8..890a18a38 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -96,6 +96,8 @@ class ServerFeatures notfinal
virtual bool haveAttackDirections() const = 0;
virtual bool haveVending() const = 0;
+
+ virtual bool haveCart() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index b939970ee..5ba2b1dac 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -199,4 +199,9 @@ bool ServerFeatures::haveVending() const
return false;
}
+bool ServerFeatures::haveCart() const
+{
+ return false;
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index 391073d4a..d29c4287b 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -99,6 +99,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveAttackDirections() const override final;
bool haveVending() const override final;
+
+ bool haveCart() const override final;
};
} // namespace TmwAthena