summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/spritedef.cpp')
-rw-r--r--src/resources/spritedef.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp
index dddee575f..edd7b6a74 100644
--- a/src/resources/spritedef.cpp
+++ b/src/resources/spritedef.cpp
@@ -334,6 +334,14 @@ SpriteDirection SpriteDef::makeSpriteDirection(const std::string &direction)
return DIRECTION_RIGHT;
else if (direction == "down")
return DIRECTION_DOWN;
+ else if (direction == "upleft")
+ return DIRECTION_UPLEFT;
+ else if (direction == "upright")
+ return DIRECTION_UPRIGHT;
+ else if (direction == "downleft")
+ return DIRECTION_DOWNLEFT;
+ else if (direction == "downright")
+ return DIRECTION_DOWNRIGHT;
else
return DIRECTION_INVALID;
}