SCI KQ6: Castle walls - stuck in same room

Description

My platform:
Mac OS X 10.8.2

When:
(from the walkthrough at http://www.eristic.net/games/sierra/kq6.html)
"At the end of the hallway, open the door whose outline you can see on the wall. Use the skeleton key on the chest. Take the letters. Open the box and read the paper there. Leave the way you came. "

What happens:
Late in the game, you leave the genie's room and return to a hallway behind the castle walls.

From here, south is your only exit. Going south _should_ take you to a straight section of the hallway with an opening in the wall where you can spy on the vizier's room.

What actually happens in the 1.6.0 nightlies is that you end up in a different hallway "room" with west/south exits. At this point you can try and leave but you end up in the same "room" no matter which direction you exit.
I'm not citing room numbers because the SCI console says *all* of the "hallway behind the castle walls" are room 810. :\

If you save a game while stuck in this loop, the problem will persist if you load the game into a release without this issue (1.5.0) the problem persists.

What *should* happen:
After leaving the genie's room (west=>back into the hallway), you should be able to go south=>"chunk of hallway where you can spy on vizier's room".

Traced this to commit 9568b7 which changes kGetAngle(). The old implementation - while not identical to Sierra SCI - was verified against it and yields the same results. The new one apparently does not.

Many thanks for the bug report, and for the bisection. This was an issue with rounding in the SCI1 implementation of kGetAngle (commit 9568b7). Fixed in commit b956957 - the fix should be available in the next daily build