aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2016-05-30 07:19:21 +0200
committerStrangerke2016-05-30 07:19:21 +0200
commit0132689c99ac324c1f07ea7d4f2933c7a8da2b04 (patch)
tree0d94a9e7b292aed2fef44e492b23a1ae8191b296 /engines
parent52ee33dfa675f0520eb2345c46e2bb0ecaa2aa2f (diff)
downloadscummvm-rg350-0132689c99ac324c1f07ea7d4f2933c7a8da2b04.tar.gz
scummvm-rg350-0132689c99ac324c1f07ea7d4f2933c7a8da2b04.tar.bz2
scummvm-rg350-0132689c99ac324c1f07ea7d4f2933c7a8da2b04.zip
GNAP: Remove duplicate code
Diffstat (limited to 'engines')
-rw-r--r--engines/gnap/character.cpp20
1 files changed, 5 insertions, 15 deletions
diff --git a/engines/gnap/character.cpp b/engines/gnap/character.cpp
index 36d849acbf..56e520068d 100644
--- a/engines/gnap/character.cpp
+++ b/engines/gnap/character.cpp
@@ -402,22 +402,12 @@ int PlayerGnap::getSequenceId(int kind, Common::Point gridPos) {
case kGSMoan1:
if (gridPos.x > 0 && gridPos.y > 0) {
- if (_pos.y > gridPos.y) {
- if (_pos.x > gridPos.x) {
- sequenceId = 0x832;
- _idleFacing = kDirBottomLeft;
- } else {
- sequenceId = 0x7AA;
- _idleFacing = kDirBottomRight;
- }
+ if (_pos.x > gridPos.x) {
+ sequenceId = 0x832;
+ _idleFacing = kDirBottomLeft;
} else {
- if (_pos.x > gridPos.x) {
- sequenceId = 0x832;
- _idleFacing = kDirBottomLeft;
- } else {
- sequenceId = 0x7AA;
- _idleFacing = kDirBottomRight;
- }
+ sequenceId = 0x7AA;
+ _idleFacing = kDirBottomRight;
}
} else if (_idleFacing != kDirBottomRight && _idleFacing != kDirUpRight) {
sequenceId = 0x832;