diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-28 20:49:24 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-28 20:49:24 +0200 |
commit | afece3f6acd9a7a4a009b73883d4c2d27ac1b8ce (patch) | |
tree | c74d0f6e0a0000274ece2d663ed90a83459191a0 /src/resources/action.cpp | |
parent | 8d3b46c492cade8504fafedbd6c00b6a39968388 (diff) | |
download | manaverse-afece3f6acd9a7a4a009b73883d4c2d27ac1b8ce.tar.gz manaverse-afece3f6acd9a7a4a009b73883d4c2d27ac1b8ce.tar.bz2 manaverse-afece3f6acd9a7a4a009b73883d4c2d27ac1b8ce.tar.xz manaverse-afece3f6acd9a7a4a009b73883d4c2d27ac1b8ce.zip |
Fix code style and some new compilation warnings.
Diffstat (limited to 'src/resources/action.cpp')
-rw-r--r-- | src/resources/action.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/resources/action.cpp b/src/resources/action.cpp index b8cfde611..9781d6514 100644 --- a/src/resources/action.cpp +++ b/src/resources/action.cpp @@ -42,9 +42,14 @@ Animation *Action::getAnimation(int direction) const if (i == mAnimations.end()) { if (direction == DIRECTION_UPLEFT || direction == DIRECTION_UPRIGHT) + { direction = DIRECTION_UP; - else if (direction == DIRECTION_DOWNLEFT || direction == DIRECTION_DOWNRIGHT) + } + else if (direction == DIRECTION_DOWNLEFT + || direction == DIRECTION_DOWNRIGHT) + { direction = DIRECTION_DOWN; + } i = mAnimations.find(direction); // When the given direction is not available, return the first one. |