aboutsummaryrefslogtreecommitdiff
path: root/scummvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scummvm.cpp')
-rw-r--r--scummvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scummvm.cpp b/scummvm.cpp
index 7d74ccd289..26653cb0cd 100644
--- a/scummvm.cpp
+++ b/scummvm.cpp
@@ -241,7 +241,7 @@ int Scumm::scummLoop(int delta)
} else {
_vars[VAR_CAMERA_POS_X] = camera._cur.x;
}
- _vars[VAR_HAVE_MSG] = _haveMsg;
+ _vars[VAR_HAVE_MSG] = (_haveMsg == 0xFE) ? 0xFF : _haveMsg;
_vars[VAR_VIRT_MOUSE_X] = _virtual_mouse_x;
_vars[VAR_VIRT_MOUSE_Y] = _virtual_mouse_y;
_vars[VAR_MOUSE_X] = mouse.x;