diff options
author | Strangerke | 2013-01-20 22:46:00 +0100 |
---|---|---|
committer | Strangerke | 2013-01-20 22:46:00 +0100 |
commit | f9b4fe09dad0cbf94e08a39aaff3e27b020d8a6b (patch) | |
tree | 80cc5748e4cf8e3878ddb77f0fdf87ad0f80f604 /engines | |
parent | 2c69135c99e088957306675431c34bdf0c3dbde3 (diff) | |
download | scummvm-rg350-f9b4fe09dad0cbf94e08a39aaff3e27b020d8a6b.tar.gz scummvm-rg350-f9b4fe09dad0cbf94e08a39aaff3e27b020d8a6b.tar.bz2 scummvm-rg350-f9b4fe09dad0cbf94e08a39aaff3e27b020d8a6b.zip |
HOPKINS: Fix regression introduced in 5678fbd3212f3d758863ec2338066797718b8f88: Glitch while speaking. Thanks to eriktorbjorn for noticing and bisecting the problem
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hopkins/objects.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hopkins/objects.cpp b/engines/hopkins/objects.cpp index 2ddf24c75c..d94f838422 100644 --- a/engines/hopkins/objects.cpp +++ b/engines/hopkins/objects.cpp @@ -1016,9 +1016,9 @@ void ObjectsManager::displayBobAnim() { } while (idx != 35); if (!PERSO_ON && BOBTOUS) { - for (int v26 = 0; v26 != 35; v26++) { - if (_vm->_globals._bob[v26].field0 == 10 && !_vm->_globals._bob[v26]._disabledAnimationFl) - _vm->_globals._bob[v26].field1C = true; + for (int i = 0; i < 35; i++) { + if (_vm->_globals._bob[i].field0 == 10 && !_vm->_globals._bob[i]._disabledAnimationFl) + _vm->_globals._bob[i].field1C = true; } } @@ -1056,7 +1056,7 @@ void ObjectsManager::displayBobAnim() { } } - for (int i = 1; i < 25; i++) { + for (int i = 1; i < 35; i++) { _vm->_globals._bob[i]._oldY = 0; if (_vm->_globals._bob[i].field0 == 10 && !_vm->_globals._bob[i]._disabledAnimationFl && _vm->_globals._bob[i].field1C) { CALCUL_BOB(i); |