using scummvm-1.7.0-win32 in Windows 7 64-bit
At the base of the giant tree, you can walk to parts of the screen you're not meant to walk on.
To replicate bug from savegame, click the bottom left corner of the screen, then click on the tree below where you are. From here you can walk to all kinds of places on the screen you're not meant to.
Bug 6691 also happens here, so ScummVM might crash when loading the attached save.
screens
Looks like an edge case for our pathfinder. Our pathfinding algorithm (a star) is slightly different from Sierra, and there have been cases like this one (in QFG3 as well) where it chooses the wrong path
Last edit: Filippos Karapetis 2014-08-01
According to waltervn this also happens in Sierra's SCI. Ego can enter that room with coordinates outside of the boundaries.
I managed to repro:
Start in room #755 (east to the tree base), on the upper level.
Walk to the east as close to the bottom of the pathway as possible. The hero will exit the room at position (5,45) via
exitWest::changeState().The hero will transition to room #750 at (320,45).
enterEast::changeState()will be triggered:Because hero.y >= 42, It will move the hero to (300,41).
Now, the hero is outside the polygon bounds, and can move freely.
I think it could be easily and safely fixed by changing the y cutoff value from 42 to 50.
I'll verify that later.
Douglas, can you please test the game with the latest daily build?
It contains a fix for this bug: https://github.com/scummvm/scummvm/pull/766