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

lephilousophe noreply at scummvm.org
Mon Oct 28 19:17:53 UTC 2024


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:
ab342144ff WINTERMUTE: Fix build when 3D is not enabled


Commit: ab342144ff04e99197da8b823eb00b39f4b5335c
    https://github.com/scummvm/scummvm/commit/ab342144ff04e99197da8b823eb00b39f4b5335c
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2024-10-28T20:17:19+01:00

Commit Message:
WINTERMUTE: Fix build when 3D is not enabled

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


diff --git a/engines/wintermute/ad/ad_game.cpp b/engines/wintermute/ad/ad_game.cpp
index f160275ad20..1d29dd040e1 100644
--- a/engines/wintermute/ad/ad_game.cpp
+++ b/engines/wintermute/ad/ad_game.cpp
@@ -2340,16 +2340,6 @@ char *AdGame::findSpeechFile(char *stringID) {
 	return nullptr;
 }
 
-//////////////////////////////////////////////////////////////////////////
-bool AdGame::renderShadowGeometry() {
-#ifdef ENABLE_WME3D
-	if (_scene && _scene->_geom)
-		return _scene->_geom->renderShadowGeometry();
-	else
-#endif
-		return true;
-}
-
 //////////////////////////////////////////////////////////////////////////
 bool AdGame::validMouse() {
 	Point32 pos;
@@ -2505,6 +2495,14 @@ bool AdGame::displayDebugInfo() {
 
 
 #ifdef ENABLE_WME3D
+//////////////////////////////////////////////////////////////////////////
+bool AdGame::renderShadowGeometry() {
+	if (_scene && _scene->_geom)
+		return _scene->_geom->renderShadowGeometry();
+	else
+		return true;
+}
+
 //////////////////////////////////////////////////////////////////////////
 Wintermute::TShadowType AdGame::getMaxShadowType(Wintermute::BaseObject *object) {
 	TShadowType ret = BaseGame::getMaxShadowType(object);




More information about the Scummvm-git-logs mailing list