diff options
author | Dennis Friis <peavey@placid.dk> | 2008-05-28 16:06:48 +0000 |
---|---|---|
committer | Dennis Friis <peavey@placid.dk> | 2008-05-28 16:06:48 +0000 |
commit | 7f9c54c79c1bd7e7e2cd7b5f7dd0373d831bc8a8 (patch) | |
tree | 87060839283e31eee534a0083987ee7adbb8507c /src/being.cpp | |
parent | c72778820c971184eef932cfea5654c66111f923 (diff) | |
download | mana-7f9c54c79c1bd7e7e2cd7b5f7dd0373d831bc8a8.tar.gz mana-7f9c54c79c1bd7e7e2cd7b5f7dd0373d831bc8a8.tar.bz2 mana-7f9c54c79c1bd7e7e2cd7b5f7dd0373d831bc8a8.tar.xz mana-7f9c54c79c1bd7e7e2cd7b5f7dd0373d831bc8a8.zip |
Change order of direction to up/down/right/left in Being::getSpriteDirection to fix inconsistancy of facing direction when walking diagonally.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being.cpp b/src/being.cpp index 0e0fd720..625b0eef 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -300,14 +300,14 @@ Being::getSpriteDirection() const { dir = DIRECTION_UP; } - else if (mDirection & RIGHT) - { - dir = DIRECTION_RIGHT; - } else if (mDirection & DOWN) { dir = DIRECTION_DOWN; } + else if (mDirection & RIGHT) + { + dir = DIRECTION_RIGHT; + } else { dir = DIRECTION_LEFT; } |