mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +00:00
BLADERUNNER: Fix typo/bug in handleMouseAction()
This was introduced when the SceneObjectOffset enum was introduced in commit 7090841ccc43c64d5a1d9058071ebccaf6b52fc2.
This commit is contained in:
parent
7f85a988c0
commit
c3f43d0f88
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user