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

bonki bonki at users.noreply.github.com
Sun May 6 11:23:57 CEST 2018


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:
c3f43d0f88 BLADERUNNER: Fix typo/bug in handleMouseAction()


Commit: c3f43d0f88fce21fda1e1165a7c25ec84fe1b535
    https://github.com/scummvm/scummvm/commit/c3f43d0f88fce21fda1e1165a7c25ec84fe1b535
Author: Adrian Frühwirth (bonki at users.noreply.github.com)
Date: 2018-05-06T11:19:41+02:00

Commit Message:
BLADERUNNER: Fix typo/bug in handleMouseAction()

This was introduced when the SceneObjectOffset enum was introduced
in commit 7090841ccc43c64d5a1d9058071ebccaf6b52fc2.

Changed paths:
    engines/bladerunner/bladerunner.cpp


diff --git a/engines/bladerunner/bladerunner.cpp b/engines/bladerunner/bladerunner.cpp
index dac8e6d..e3324bd 100644
--- a/engines/bladerunner/bladerunner.cpp
+++ b/engines/bladerunner/bladerunner.cpp
@@ -1153,7 +1153,7 @@ void BladeRunnerEngine::handleMouseAction(int x, int y, bool mainButton, bool bu
 		int exitIndex = _scene->_exits->getRegionAtXY(x, y);
 		int regionIndex = _scene->_regions->getRegionAtXY(x, y);
 
-		if ((sceneObjectId < kSceneObjectOffsetActors || sceneObjectId >= kSceneObjectOffsetActors) && exitIndex >= 0) {
+		if ((sceneObjectId < kSceneObjectOffsetActors || sceneObjectId >= kSceneObjectOffsetItems) && exitIndex >= 0) {
 			handleMouseClickExit(exitIndex, x, y, buttonDown);
 		} else if (regionIndex >= 0) {
 			handleMouseClickRegion(regionIndex, x, y, buttonDown);





More information about the Scummvm-git-logs mailing list