[Scummvm-git-logs] scummvm master -> 0945f86626adf5c13c4c07f1e0a7cc9aa9bfaecf

sdelamarre noreply at scummvm.org
Wed Apr 12 23:17:35 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:
0945f86626 GOB: fix objects offset in Adibou1 construction game


Commit: 0945f86626adf5c13c4c07f1e0a7cc9aa9bfaecf
    https://github.com/scummvm/scummvm/commit/0945f86626adf5c13c4c07f1e0a7cc9aa9bfaecf
Author: Simon Delamarre (simon.delamarre14 at gmail.com)
Date: 2023-04-13T01:17:18+02:00

Commit Message:
GOB: fix objects offset in Adibou1 construction game

Changed paths:
    engines/gob/inter_v1.cpp


diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp
index c5a11362814..068cd264de3 100644
--- a/engines/gob/inter_v1.cpp
+++ b/engines/gob/inter_v1.cpp
@@ -606,8 +606,10 @@ void Inter_v1::o1_getObjAnimSize() {
 					animData.animation, 0, *(_vm->_mult->_objects[objIndex].pPosX),
 					*(_vm->_mult->_objects[objIndex].pPosY), 0);
 
-		_vm->_scenery->_toRedrawLeft = MAX<int16>(_vm->_scenery->_toRedrawLeft, 0);
-		_vm->_scenery->_toRedrawTop  = MAX<int16>(_vm->_scenery->_toRedrawTop , 0);
+		if (_vm->getGameType() != kGameTypeAdibou1) {
+			_vm->_scenery->_toRedrawLeft = MAX<int16>(_vm->_scenery->_toRedrawLeft, 0);
+			_vm->_scenery->_toRedrawTop  = MAX<int16>(_vm->_scenery->_toRedrawTop , 0);
+		}
 	}
 
 	WRITE_VAR_OFFSET(varLeft  , _vm->_scenery->_toRedrawLeft);




More information about the Scummvm-git-logs mailing list