From 511b37bcb0bc086712138da25cbbefd6dab272be Mon Sep 17 00:00:00 2001 From: Strangerke Date: Tue, 24 May 2016 21:50:26 +0200 Subject: GNAP: Remove some more duplicate code --- engines/gnap/character.cpp | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'engines/gnap') 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 -- cgit v1.2.3