diff options
author | Strangerke | 2016-05-24 21:50:26 +0200 |
---|---|---|
committer | Strangerke | 2016-05-24 21:50:26 +0200 |
commit | 511b37bcb0bc086712138da25cbbefd6dab272be (patch) | |
tree | d721505fb7d5f609d18d0368f7f843c3c62f9c1c /engines/gnap | |
parent | b91d12557f0b458b62d6a971de8be4de114673ac (diff) | |
download | scummvm-rg350-511b37bcb0bc086712138da25cbbefd6dab272be.tar.gz scummvm-rg350-511b37bcb0bc086712138da25cbbefd6dab272be.tar.bz2 scummvm-rg350-511b37bcb0bc086712138da25cbbefd6dab272be.zip |
GNAP: Remove some more duplicate code
Diffstat (limited to 'engines/gnap')
-rw-r--r-- | engines/gnap/character.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/engines/gnap/character.cpp b/engines/gnap/character.cpp index 407ecb1b2b..36d849acbf 100644 --- a/engines/gnap/character.cpp +++ b/engines/gnap/character.cpp @@ -906,6 +906,7 @@ int PlayerGnap::getShowSequenceId(int index, int gridX, int gridY) { sequenceId = 0x890; break; case 8: + case 12: if (_idleFacing == kDirUpRight) sequenceId = 0x87D; else @@ -918,23 +919,12 @@ int PlayerGnap::getShowSequenceId(int index, int gridX, int gridY) { sequenceId = 0x897; break; case 10: - if (_idleFacing == kDirUpRight) - sequenceId = 0x87C; - else - sequenceId = 0x891; - break; case 11: if (_idleFacing == kDirUpRight) sequenceId = 0x87C; else sequenceId = 0x891; break; - case 12: - if (_idleFacing == kDirUpRight) - sequenceId = 0x87D; - else - sequenceId = 0x892; - break; case 13: if (_idleFacing == kDirUpRight) sequenceId = 0x888; @@ -964,6 +954,7 @@ int PlayerGnap::getShowSequenceId(int index, int gridX, int gridY) { sequenceId = 0x887; break; case 19: + case 25: if (_idleFacing == kDirUpRight) sequenceId = 0x87A; else @@ -999,12 +990,6 @@ int PlayerGnap::getShowSequenceId(int index, int gridX, int gridY) { else sequenceId = 0x89B; break; - case 25: - if (_idleFacing == kDirUpRight) - sequenceId = 0x87A; - else - sequenceId = 0x88F; - break; //Skip 26 //Skip 27 //Skip 28 |