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

sev- noreply at scummvm.org
Sun Mar 6 16:48:44 UTC 2022


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:
ebc01f09c9 NGI: Fix stuck when teleporting to foot (bug  #10395)


Commit: ebc01f09c9dd0895676f1e34d53822ba1d3f62ba
    https://github.com/scummvm/scummvm/commit/ebc01f09c9dd0895676f1e34d53822ba1d3f62ba
Author: Pragyansh Chaturvedi (r41k0u) (pragyanshchaturvedi18 at gmail.com)
Date: 2022-03-06T17:48:40+01:00

Commit Message:
NGI: Fix stuck when teleporting to foot (bug  #10395)

Changed paths:
    engines/ngi/modal.cpp


diff --git a/engines/ngi/modal.cpp b/engines/ngi/modal.cpp
index 862d0d49208..8c1b12c7087 100644
--- a/engines/ngi/modal.cpp
+++ b/engines/ngi/modal.cpp
@@ -730,7 +730,12 @@ void ModalMap::clickButton(PictureObject *pic) {
 	if (pitem && pitem2) {
 		pitem->preloadId1 = g_nmi->_currentScene->_sceneId;
 		pitem->sceneId = pitem2->sceneId;
-		pitem->param = pitem2->param;
+		if (pitem->sceneId == SC_30 && pitem->preloadId2 == SC_MAP) {
+			pitem->param = TrubaRight;
+		} else {
+			pitem->param = pitem2->param;
+		}
+
 
 		if (pitem->preloadId1 == pitem2->sceneId) {
 			_isRunning = 0;




More information about the Scummvm-git-logs mailing list