summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-07 02:45:56 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-07 02:45:56 +0300
commitd9732855666b402c0a492d6618ce9ab930089219 (patch)
tree6f1308b9958e605a9508d174907fa6d5b21654d7 /src/net
parenta66df732580a488c92dd680e8b9e7fc965ea1318 (diff)
downloadManaVerse-d9732855666b402c0a492d6618ce9ab930089219.tar.gz
ManaVerse-d9732855666b402c0a492d6618ce9ab930089219.tar.bz2
ManaVerse-d9732855666b402c0a492d6618ce9ab930089219.tar.xz
ManaVerse-d9732855666b402c0a492d6618ce9ab930089219.zip
Add server feature haveServerPets.
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 4c87536b0..6f031681e 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -280,4 +280,9 @@ bool ServerFeatures::haveMail() const
return true;
}
+bool ServerFeatures::haveServerPets() const
+{
+ return true;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index 86e14ffc3..fee5aaea5 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -131,6 +131,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveMultyStatusUp() const override final;
bool haveMail() const override final;
+
+ bool haveServerPets() const override final;
};
} // namespace EAthena
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index fbba2988a..30fb97f5c 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -128,6 +128,8 @@ class ServerFeatures notfinal
virtual bool haveMultyStatusUp() const = 0;
virtual bool haveMail() const = 0;
+
+ virtual bool haveServerPets() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index 22ca73f2b..94e3beb7e 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -278,4 +278,9 @@ bool ServerFeatures::haveMail() const
return false;
}
+bool ServerFeatures::haveServerPets() const
+{
+ return false;
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index f4031a7ea..41e64cd39 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -131,6 +131,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveMultyStatusUp() const override final A_CONST;
bool haveMail() const override final A_CONST;
+
+ bool haveServerPets() const override final A_CONST;
};
} // namespace TmwAthena