diff options
Diffstat (limited to 'engines/titanic/core/link_item.cpp')
-rw-r--r-- | engines/titanic/core/link_item.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/titanic/core/link_item.cpp b/engines/titanic/core/link_item.cpp index c46e44aa8b..23be00596b 100644 --- a/engines/titanic/core/link_item.cpp +++ b/engines/titanic/core/link_item.cpp @@ -35,7 +35,8 @@ Movement CLinkItem::getMovementFromCursor(CursorId cursorId) { else if (cursorId == CURSOR_MOVE_RIGHT) return TURN_RIGHT; else if (cursorId == CURSOR_MOVE_FORWARD || cursorId == CURSOR_MOVE_THROUGH || - cursorId == CURSOR_DOWN) + cursorId == CURSOR_DOWN || cursorId == CURSOR_LOOK_UP || + cursorId == CURSOR_LOOK_DOWN || cursorId == CURSOR_MAGNIFIER) return MOVE_FORWARDS; else if (cursorId == CURSOR_BACKWARDS) return MOVE_BACKWARDS; @@ -194,4 +195,12 @@ Movement CLinkItem::getMovement() const { return getMovementFromCursor(_cursorId); } +bool CLinkItem::findPoint(Quadrant quadrant, Point &pt) { + if (_bounds.isEmpty()) + return false; + + pt = _bounds.getPoint(quadrant); + return true; +} + } // End of namespace Titanic |