From 63112267be277e38224b510ec5745421dd7d4917 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 21 Jan 2011 23:23:16 +0200 Subject: Add diagonal animations. New animation names: upleft, upright, downleft, downright Tested atleast at mobs. --- src/resources/spritedef.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/resources/spritedef.cpp') 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; } -- cgit v1.2.3-60-g2f50