summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/itemdb.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index 94c9b14b8..e0616090d 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -39,6 +39,7 @@
#include "resources/sprite/spritereference.h"
+#include "net/net.h"
#include "net/serverfeatures.h"
#include "utils/checkutils.h"
@@ -780,10 +781,12 @@ static int parseDirectionName(const std::string &name)
int id = -1;
if (name == "down")
{
- if (serverFeatures->haveEightDirections())
- id = SpriteDirection::DOWN;
- else
+#ifdef TMWA_SUPPORT
+ if (Net::getNetworkType() == ServerType::TMWATHENA)
id = -2;
+ else
+#endif
+ id = SpriteDirection::DOWN;
}
else if (name == "downleft" || name == "leftdown")
{
@@ -799,10 +802,12 @@ static int parseDirectionName(const std::string &name)
}
else if (name == "up")
{
- if (serverFeatures->haveEightDirections())
- id = SpriteDirection::UP;
- else
+#ifdef TMWA_SUPPORT
+ if (Net::getNetworkType() == ServerType::TMWATHENA)
id = -3;
+ else
+#endif
+ id = SpriteDirection::UP;
}
else if (name == "upright" || name == "rightup")
{