ALL: o5_getClosestObjActor() oddity
|Reported by:||eriktorbjorn||Owned by:||fingolfin|
The o5_getClosestObjActor() function looks a bit strange to me. It won't notice any actor that's farther away than 255 units (pixels?).
This appears to be the main reason why the encounter with Edna in the kitchen in Maniac Mansion doesn't work the way it should. If I change it to initialize closest_dist to 0xFFFF instead of 0xFF she will at least notice you, though some of the text isn't displayed when it should be. I guess the script that checks for when you get near her will terminate if it thinks she's not in the room at all.
Is this the right thing to do, or would it break any other games? An alternative way would be to change getObjActToObjActDist() to divide the distance by 8 for V2-games. If so, we'd have to remember to change o5_getDist(), of course.
Ticket imported from: #745935. Ticket imported from: bugs/831.