residualvm/residualvm — pull request #467 by YakBizzarro (2012-01-10 22:05:01+00:00)
Title: GRIM: Fix a bug in Petrified forest

This commit fix the bug #312 "Manny disappears while holding and examining the sign the Ruba." by patching games scripts with Patchr.

In sg and na sets, if Manny examine the sign of Ruba, it zoom the visual near the sign, by changing the setup and putting manny and the sign in it. The code that translate the coordinates of Manny is bugged, since it doesn't distinguish the case when the sign is planted or not; in particular, it's right when it's planted. This patch add a check of state of sign, and set Manny in a fixed position (in the center of the scene) when he is holding the sign.
It also corrects the behaviour of Manny's head, since he doesn't look at the sign, when he is examining it. This is caused by the lacks of "enable_head_control(FALSE/TRUE)" before and after "START/END_CUT_SCENE()" and by a call at "manny:head_look_at_point" with the wrong arguments (a table instead of the coordinates instead of single coordinates).