From 019624e3c1a9ebc83e5f7e81ca2abb98228acaa2 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 16 Jan 2008 10:06:19 +0000 Subject: Added code fragment to correctly set the walk to position for Goewin (for interacting with her) both when she's in the Apothecary and when she's out walking svn-id: r30515 --- engines/lure/scripts.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines/lure/scripts.cpp') diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp index 173330cfe9..84d1ce4169 100644 --- a/engines/lure/scripts.cpp +++ b/engines/lure/scripts.cpp @@ -603,6 +603,10 @@ void Script::makeGoewinWork(uint16 v1, uint16 v2, uint16 v3) { goewin->setHotspotScript(0x616); goewin->setDelayCtr(1500); goewin->setTickProc(GOEWIN_SHOP_TICK_PROC); + + // Set walk to position for Goewin whilst she's working + goewin->resource()->walkX = 179; + goewin->resource()->walkY = 138; } // Sets a character moving to the player's room (if they're not already there) @@ -700,6 +704,10 @@ void Script::normalGoewin(uint16 v1, uint16 v2, uint16 v3) { hotspot->setCharacterMode(CHARMODE_NONE); hotspot->setDirection(UP); hotspot->setTickProc(STANDARD_CHARACTER_TICK_PROC); + + // Clear walk to position for Goewin so player must walk up to her when interacting + hotspot->resource()->walkX = 0; + hotspot->resource()->walkY = 0; } // Flags the player as dead -- cgit v1.2.3