summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
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 e0fae12bb..15ba5d371 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -235,4 +235,9 @@ bool ServerFeatures::haveNewGuild() const
return false;
}
+bool ServerFeatures::haveAdvancedSprites() const
+{
+ return serverVersion >= 7;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index 291551a89..04a8fb96c 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -113,6 +113,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveTeamId() const override final;
bool haveNewGuild() const override final;
+
+ bool haveAdvancedSprites() const override final;
};
} // namespace EAthena
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index df5b6fe3b..53c37602a 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -110,6 +110,8 @@ class ServerFeatures notfinal
virtual bool haveTeamId() const = 0;
virtual bool haveNewGuild() const = 0;
+
+ virtual bool haveAdvancedSprites() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index a277a15f1..17418268b 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -234,4 +234,9 @@ bool ServerFeatures::haveNewGuild() const
return tmwServerVersion > 0;
}
+bool ServerFeatures::haveAdvancedSprites() const
+{
+ return false;
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index e13d67250..24dd88a99 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -113,6 +113,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveTeamId() const override final;
bool haveNewGuild() const override final;
+
+ bool haveAdvancedSprites() const override final;
};
} // namespace TmwAthena