summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/serverfeatures.cpp5
-rw-r--r--src/net/eathena/serverfeatures.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp
index 911bacbe3..596623fbb 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -165,4 +165,9 @@ bool ServerFeatures::haveMapServerVersion() const
return serverVersion > 0;
}
+bool ServerFeatures::haveNpcGender() const
+{
+ return serverVersion >= 3;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index 3de5c0c83..735e19913 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -85,6 +85,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveServerVersion() const override final;
bool haveMapServerVersion() const override final;
+
+ bool haveNpcGender() const override final;
};
} // namespace EAthena