aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2007-12-16 09:36:07 +0000
committerPaul Gilbert2007-12-16 09:36:07 +0000
commitaa96ec99400b76b0bf9cc0efc00d6cf6c2984c2b (patch)
treed10c0e2279acfa19236921d82ded7bcfe8c3647f /engines
parent11cebee5e39a77b18778fe68b62c049342c75c83 (diff)
downloadscummvm-rg350-aa96ec99400b76b0bf9cc0efc00d6cf6c2984c2b.tar.gz
scummvm-rg350-aa96ec99400b76b0bf9cc0efc00d6cf6c2984c2b.tar.bz2
scummvm-rg350-aa96ec99400b76b0bf9cc0efc00d6cf6c2984c2b.zip
Bugfix for walking to hotspots - if the mouse was already highlighting the hotspot when a room was entered, clicking on it would cause the player to walk to an arbitrary exit
svn-id: r29875
Diffstat (limited to 'engines')
-rw-r--r--engines/lure/room.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/lure/room.cpp b/engines/lure/room.cpp
index 00caddb0f9..c12372a499 100644
--- a/engines/lure/room.cpp
+++ b/engines/lure/room.cpp
@@ -153,6 +153,8 @@ void Room::checkRoomHotspots() {
int16 currentY = m.y();
HotspotDataList::iterator i;
+ _destRoomNumber = 0;
+
// Loop for each range of hotspot Ids
for (int ctr = 0; ctr < 4; ++ctr) {
for (i = list.begin(); i != list.end(); ++i) {
@@ -209,7 +211,6 @@ void Room::checkRoomHotspots() {
_hotspotId = 0;
_hotspotNameId = 0;
_hotspot = NULL;
- _destRoomNumber = 0;
} else {
_hotspotNameId = entry->nameId;
_hotspot = entry;