[Scummvm-git-logs] scummvm master -> 9ba5c4de8b5d21c8153c25f497e179d4d420fe97

sdelamarre noreply at scummvm.org
Sun Jul 9 21:59:26 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
9ba5c4de8b GOB: fix animation glitches in CD versions of Adibou1


Commit: 9ba5c4de8b5d21c8153c25f497e179d4d420fe97
    https://github.com/scummvm/scummvm/commit/9ba5c4de8b5d21c8153c25f497e179d4d420fe97
Author: Simon Delamarre (simon.delamarre14 at gmail.com)
Date: 2023-07-09T23:59:00+02:00

Commit Message:
GOB: fix animation glitches in CD versions of Adibou1

The "search" mode in loadAnim(), which selects the first free sceneryIndex available, had a bug leading to overwriting previously loaded animation data.

Changed paths:
    engines/gob/scenery.cpp


diff --git a/engines/gob/scenery.cpp b/engines/gob/scenery.cpp
index 768ba71a560..9b29e22c1d7 100644
--- a/engines/gob/scenery.cpp
+++ b/engines/gob/scenery.cpp
@@ -433,6 +433,7 @@ int16 Scenery::loadAnim(char search) {
 	resId = _vm->_game->_script->readInt16();
 
 	if (search) {
+		sceneryIndex = 10;
 		for (i = 0; i < 10; i++) {
 			if ((_animPictCount[i] != 0) && (_animResId[i] == resId)) {
 				_vm->_game->_script->skip(8 * _animPictCount[i]);




More information about the Scummvm-git-logs mailing list