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

aquadran noreply at scummvm.org
Fri Sep 19 10:29:12 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:
d7f6dacbfe WINTERMUTE: Synced code with original - shadow flow


Commit: d7f6dacbfeaf71bc08342ee5df513dcf522006ff
    https://github.com/scummvm/scummvm/commit/d7f6dacbfeaf71bc08342ee5df513dcf522006ff
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-09-19T12:29:07+02:00

Commit Message:
WINTERMUTE: Synced code with original - shadow flow

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


diff --git a/engines/wintermute/ad/ad_actor_3dx.cpp b/engines/wintermute/ad/ad_actor_3dx.cpp
index 489109bb8d2..ea618c5c017 100644
--- a/engines/wintermute/ad/ad_actor_3dx.cpp
+++ b/engines/wintermute/ad/ad_actor_3dx.cpp
@@ -411,14 +411,16 @@ bool AdActor3DX::display() {
 	TShadowType shadowType = _game->getMaxShadowType(this);
 	if (shadowType == SHADOW_STENCIL) {
 		displayShadowVolume();
-	} else if (_game->_maxShadowType > SHADOW_NONE) {
-		bool simpleShadow = shadowType <= SHADOW_SIMPLE;
-		if (!_game->_supportsRealTimeShadows)
-			simpleShadow = true;
-		if (simpleShadow)
-			_game->_renderer3D->displaySimpleShadow(this);
-		else
-			displayFlatShadow();
+	} else if (shadowType > SHADOW_NONE) {
+		if (_game->_maxShadowType > SHADOW_NONE) {
+			bool simpleShadow = shadowType <= SHADOW_SIMPLE;
+			if (!_game->_supportsRealTimeShadows)
+				simpleShadow = true;
+			if (simpleShadow)
+				_game->_renderer3D->displaySimpleShadow(this);
+			else
+				displayFlatShadow();
+		}
 	}
 
 	_game->_renderer3D->setSpriteBlendMode(_blendMode, true);




More information about the Scummvm-git-logs mailing list