[Scummvm-git-logs] scummvm master -> a5eba0c6e891bc0a7e0593e4c929cf7c32e0c5a3

Strangerke noreply at scummvm.org
Thu Mar 17 23:55:50 UTC 2022


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:
a5eba0c6e8 CHEWY: Fix animation regression introduced in 4a012a295530429218dcdf661d0042ab107faf2a


Commit: a5eba0c6e891bc0a7e0593e4c929cf7c32e0c5a3
    https://github.com/scummvm/scummvm/commit/a5eba0c6e891bc0a7e0593e4c929cf7c32e0c5a3
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2022-03-18T00:55:07+01:00

Commit Message:
CHEWY: Fix animation regression introduced in 4a012a295530429218dcdf661d0042ab107faf2a

Changed paths:
    engines/chewy/detail.cpp


diff --git a/engines/chewy/detail.cpp b/engines/chewy/detail.cpp
index dd78287816e..95c0ebca78c 100644
--- a/engines/chewy/detail.cpp
+++ b/engines/chewy/detail.cpp
@@ -568,7 +568,7 @@ SprInfo Detail::plot_detail_sprite(int16 scrx, int16 scry, int16 det_nr, int16 s
 		spr_nr = adiptr->start_ani;
 	if (spr_nr > adiptr->end_ani)
 		spr_nr = adiptr->end_ani - 1;
-	int16 *Cxy = &_rdi.dptr->_correction[spr_nr];
+	int16 *Cxy = &_rdi.dptr->_correction[spr_nr << 1];
 	int16 *Xy = (int16 *)_rdi.dptr->_image[spr_nr];
 	_sprInfo._image = _rdi.dptr->_image[spr_nr];
 	_sprInfo._x = adiptr->x + Cxy[0] - scrx;




More information about the Scummvm-git-logs mailing list