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

aquadran noreply at scummvm.org
Tue Jul 22 20:09:03 UTC 2025


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

Summary:
ad2d2ce592 WINTERMUTE: Code delta compared with Lite version


Commit: ad2d2ce592cf12fa28a2925921aef20297e014db
    https://github.com/scummvm/scummvm/commit/ad2d2ce592cf12fa28a2925921aef20297e014db
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-07-22T22:08:59+02:00

Commit Message:
WINTERMUTE: Code delta compared with Lite version

Changed paths:
    engines/wintermute/ad/ad_actor.cpp


diff --git a/engines/wintermute/ad/ad_actor.cpp b/engines/wintermute/ad/ad_actor.cpp
index d016ebddcb6..cedf2a84eac 100644
--- a/engines/wintermute/ad/ad_actor.cpp
+++ b/engines/wintermute/ad/ad_actor.cpp
@@ -621,7 +621,7 @@ bool AdActor::update() {
 	}
 
 	// default: stand animation
-	if (!_currentSprite) {
+	if (BaseEngine::instance().getTargetExecutable() == WME_LITE && !_currentSprite) {
 		if (_sprite) {
 			_currentSprite = _sprite;
 		} else {
@@ -803,6 +803,21 @@ bool AdActor::update() {
 		error("AdActor::Update - Unhandled enum");
 	}
 
+	// default: stand animation
+	if (BaseEngine::instance().getTargetExecutable() < WME_LITE && !_currentSprite) {
+		if (_sprite) {
+			_currentSprite = _sprite;
+		} else {
+			if (_standSprite) {
+				_currentSprite = _standSprite->getSprite(_dir);
+			} else {
+				AdSpriteSet *anim = getAnimByName(_idleAnimName);
+				if (anim) {
+					_currentSprite = anim->getSprite(_dir);
+				}
+			}
+		}
+	}
 
 	if (_currentSprite && !already_moved) {
 		_currentSprite->getCurrentFrame(_zoomable ? ((AdGame *)_gameRef)->_scene->getZoomAt(_posX, _posY) : 100, _zoomable ? ((AdGame *)_gameRef)->_scene->getZoomAt(_posX, _posY) : 100);




More information about the Scummvm-git-logs mailing list