aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorKirben2014-03-11 19:37:52 +1100
committerKirben2014-03-11 19:37:52 +1100
commitac26163f4deeaafa3fd9062318359f7e1c371d59 (patch)
tree1edda64f695972edba2aed9136657825b57743f1 /engines
parente9189b57b3133f603314799d663c0e96231477f8 (diff)
downloadscummvm-rg350-ac26163f4deeaafa3fd9062318359f7e1c371d59.tar.gz
scummvm-rg350-ac26163f4deeaafa3fd9062318359f7e1c371d59.tar.bz2
scummvm-rg350-ac26163f4deeaafa3fd9062318359f7e1c371d59.zip
AGOS: Fix scroll wheel glitch in Simon the Sorcerer 1.
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/input.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/input.cpp b/engines/agos/input.cpp
index 35779323e3..8a4e87017a 100644
--- a/engines/agos/input.cpp
+++ b/engines/agos/input.cpp
@@ -450,7 +450,7 @@ void AGOSEngine_Feeble::handleMouseWheelDown() {
void AGOSEngine_Simon1::handleMouseWheelUp() {
HitArea *ha = findBox(206);
- if (ha != NULL && (ha->flags & kBFBoxInUse)) {
+ if (ha != NULL && (ha->flags & kBFBoxInUse) && !(ha->flags & kBFBoxDead)) {
if (_saveLoadRowCurPos != 1) {
if (_saveLoadRowCurPos < 7)
_saveLoadRowCurPos = 1;
@@ -467,7 +467,7 @@ void AGOSEngine_Simon1::handleMouseWheelUp() {
void AGOSEngine_Simon1::handleMouseWheelDown() {
HitArea *ha = findBox(207);
- if (ha != NULL && (ha->flags & kBFBoxInUse)) {
+ if (ha != NULL && (ha->flags & kBFBoxInUse) && !(ha->flags & kBFBoxDead)) {
if (_saveDialogFlag) {
_saveLoadRowCurPos += 1;
if (_saveLoadRowCurPos >= _numSaveGameRows)