aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-01 23:26:26 -0400
committerPaul Gilbert2018-04-01 23:26:26 -0400
commit6e85a17795e0af4d93d296615f653f6719bce7ec (patch)
treef642d0b76a9d9cf730e5b4a134d44ec0f715eb27 /engines
parent766574e03ec35d46d98b6c081ce07b8e51d79a32 (diff)
downloadscummvm-rg350-6e85a17795e0af4d93d296615f653f6719bce7ec.tar.gz
scummvm-rg350-6e85a17795e0af4d93d296615f653f6719bce7ec.tar.bz2
scummvm-rg350-6e85a17795e0af4d93d296615f653f6719bce7ec.zip
XEEN: Fix showing sign text at F4 2,3
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/scripts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp
index 896387f4d3..0d5a778d6d 100644
--- a/engines/xeen/scripts.cpp
+++ b/engines/xeen/scripts.cpp
@@ -183,8 +183,8 @@ int Scripts::checkEvents() {
for (eventIndex = 0; eventIndex < map._events.size() && !_vm->shouldExit(); ++eventIndex) {
MazeEvent &event = map._events[eventIndex];
- if (event._position == _currentPos && party._mazeDirection !=
- (_currentPos.x | _currentPos.y) && event._line == _lineNum) {
+ if (event._position == _currentPos && event._line == _lineNum &&
+ (party._mazeDirection | _currentPos.x | _currentPos.y)) {
if (event._direction == party._mazeDirection || event._direction == DIR_ALL) {
_vm->_mode = MODE_RECORD_EVENTS;
_scriptExecuted = true;