summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-16 22:10:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-16 22:10:35 +0300
commit211132be950db3d94811e2cdf0a349d468b3a824 (patch)
tree1ff5df5a74c79a98ca155715222c94b30110432d /src/resources/db
parent5f9e53cb962078bf2d13786157fbf31465d4e864 (diff)
downloadmv-211132be950db3d94811e2cdf0a349d468b3a824.tar.gz
mv-211132be950db3d94811e2cdf0a349d468b3a824.tar.bz2
mv-211132be950db3d94811e2cdf0a349d468b3a824.tar.xz
mv-211132be950db3d94811e2cdf0a349d468b3a824.zip
Add server feature haveEightDirections.
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/itemdb.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index 7dfecb6ae..5f0b377b1 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -35,6 +35,9 @@
#include "resources/db/itemdbstat.h"
+#include "net/net.h"
+#include "net/serverfeatures.h"
+
#include "utils/delete2.h"
#include "utils/dtor.h"
@@ -672,7 +675,7 @@ static int parseDirectionName(const std::string &name)
int id = -1;
if (name == "down")
{
- if (serverVersion > 0)
+ if (Net::getServerFeatures()->haveEightDirections())
id = SpriteDirection::DOWN;
else
id = -2;
@@ -691,7 +694,7 @@ static int parseDirectionName(const std::string &name)
}
else if (name == "up")
{
- if (serverVersion > 0)
+ if (Net::getServerFeatures()->haveEightDirections())
id = SpriteDirection::UP;
else
id = -3;