CMI: Cannon fixes
|Reported by:||eriktorbjorn||Owned by:||SF/ender|
|Cc:||Game:||Monkey Island 3|
I'm not quite happy about the way this patch turned out, but there's enough good in it to submit, I think. It is intended to make the cannon scene in CMI more playable.
It does so by correcting the order in which the parameters to SO_CURSOR_PUT are popped (this is important) and how mouse.y is calculated (I haven't really checked if this makes any noticeable difference). This is the important part of the patch, and could probably be applied right away.
It also adds a new backend function to move the mouse cursor to a specified position. Apparently CMI locks the mouse cursor's X coordinate by constantly returning it to "neutral". For some reason I couldn't get this to work in fullscreen mode without adding an ugly hack, which is one of the reasons I'm not altogether happy about it.
The script that controls the cannon's movement appears to be room-10-2007.dmp. At the time of writing descumm6 fails to descumm this, but that's trivial to fix. (I've submitted another patch for that.)
Ticket imported from: #664895. Ticket imported from: patches/260.