diff options
author | Strangerke | 2016-05-23 07:57:21 +0200 |
---|---|---|
committer | Strangerke | 2016-05-23 07:57:21 +0200 |
commit | ecdf982eba72f00c34aa73644c074f60e493887b (patch) | |
tree | 2609305a3ae8bf3fdc1737f66bd7809b3d4d3f8f /engines | |
parent | aeb36d4afc0c6b5961adc411dc03b00a96a86f99 (diff) | |
download | scummvm-rg350-ecdf982eba72f00c34aa73644c074f60e493887b.tar.gz scummvm-rg350-ecdf982eba72f00c34aa73644c074f60e493887b.tar.bz2 scummvm-rg350-ecdf982eba72f00c34aa73644c074f60e493887b.zip |
GNAP: Add a note, remove a checkme
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gnap/character.cpp | 2 | ||||
-rw-r--r-- | engines/gnap/scenes/scenecore.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/engines/gnap/character.cpp b/engines/gnap/character.cpp index 5eb35d1237..76e30d9dfa 100644 --- a/engines/gnap/character.cpp +++ b/engines/gnap/character.cpp @@ -1287,6 +1287,8 @@ int PlayerPlat::getWalkSequenceId(int deltaX, int deltaY) { } bool PlayerPlat::walkTo(Common::Point gridPos, int animationIndex, int sequenceId, int flags) { + // Note: flags is always 1. The code could be simplified. + int datNum = flags & 3; PlayerGnap& gnap = *_vm->_gnap; diff --git a/engines/gnap/scenes/scenecore.cpp b/engines/gnap/scenes/scenecore.cpp index d34f46037f..5e941f4975 100644 --- a/engines/gnap/scenes/scenecore.cpp +++ b/engines/gnap/scenes/scenecore.cpp @@ -660,7 +660,7 @@ void CutScene::run() { if (_vm->_prevSceneNum == 2) { soundId = 0x36B; - duration = MAX(1, 300 / _vm->getSequenceTotalDuration(_sequenceIdArr[_itemsCount - 1]));//CHECKME + duration = MAX(1, 300 / _vm->getSequenceTotalDuration(_sequenceIdArr[_itemsCount - 1])); _vm->_timers[0] = 0; } |