[Scummvm-cvs-logs] scummvm master -> 977513581138916924558cf202076e0222e2688d

dreammaster dreammaster at scummvm.org
Sat Jun 7 23:35:40 CEST 2014


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:
9775135811 MADS: Fix incorrect frame usage for spinning inventory items


Commit: 977513581138916924558cf202076e0222e2688d
    https://github.com/scummvm/scummvm/commit/977513581138916924558cf202076e0222e2688d
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2014-06-07T17:34:57-04:00

Commit Message:
MADS: Fix incorrect frame usage for spinning inventory items

Changed paths:
    engines/mads/user_interface.cpp



diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp
index fed6f78..1f8d503 100644
--- a/engines/mads/user_interface.cpp
+++ b/engines/mads/user_interface.cpp
@@ -154,7 +154,7 @@ void UISlots::draw(bool updateFlag, bool delFlag) {
 				bool flipped = slot._frameNumber < 0;
 
 				if (slot._segmentId == IMG_SPINNING_OBJECT) {
-					MSprite *sprite = asset->getFrame(frameNumber);
+					MSprite *sprite = asset->getFrame(frameNumber - 1);
 					sprite->copyTo(&userInterface, slot._position,
 						sprite->getTransparencyIndex());
 				} else {






More information about the Scummvm-git-logs mailing list