summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-21 23:23:16 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-21 23:23:16 +0200
commit63112267be277e38224b510ec5745421dd7d4917 (patch)
treeab3ae7990cb49d61382bd0cd225fbe53d329f4a0 /src/resources/spritedef.cpp
parent05ea95733e9ec89626e08989e0688e73d1408d3a (diff)
downloadManaVerse-63112267be277e38224b510ec5745421dd7d4917.tar.gz
ManaVerse-63112267be277e38224b510ec5745421dd7d4917.tar.bz2
ManaVerse-63112267be277e38224b510ec5745421dd7d4917.tar.xz
ManaVerse-63112267be277e38224b510ec5745421dd7d4917.zip
Add diagonal animations.
New animation names: upleft, upright, downleft, downright Tested atleast at mobs.
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;
}