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

aquadran noreply at scummvm.org
Thu Jul 16 20:17:37 UTC 2026


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:
f240d9fe19 WINTERMUTE: Implement 'SetCurrentFOV' method for 'The Last Crown - Midnight Horror'


Commit: f240d9fe19224e16d6daf4efeb456617f21385de
    https://github.com/scummvm/scummvm/commit/f240d9fe19224e16d6daf4efeb456617f21385de
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2026-07-16T22:17:25+02:00

Commit Message:
WINTERMUTE: Implement 'SetCurrentFOV' method for 'The Last Crown - Midnight Horror'

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


diff --git a/engines/wintermute/ad/ad_scene.cpp b/engines/wintermute/ad/ad_scene.cpp
index 7793624aae1..d3fcaaab8be 100644
--- a/engines/wintermute/ad/ad_scene.cpp
+++ b/engines/wintermute/ad/ad_scene.cpp
@@ -1652,6 +1652,21 @@ bool AdScene::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack,
 		}
 		return STATUS_OK;
 	}
+
+	//////////////////////////////////////////////////////////////////////////
+	// SetCurrentFOV
+	//////////////////////////////////////////////////////////////////////////
+	if (strcmp(name, "SetCurrentFOV") == 0) {
+		stack->correctParams(1);
+
+		float fov = stack->pop()->getFloat();
+		if (_geom->_activeCamera >= 0 && _geom->_activeCamera < _geom->_cameras.getSize()) {
+			_geom->_cameras[_geom->_activeCamera]->_fov = fov;
+		}
+
+		stack->pushNULL();
+		return STATUS_OK;
+	}
 #endif
 
 	//////////////////////////////////////////////////////////////////////////




More information about the Scummvm-git-logs mailing list