[ scummvm-Bugs-745935 ] ALL: o5_getClosestObjActor() oddity

SourceForge.net noreply at sourceforge.net
Fri May 30 10:10:08 CEST 2003


Bugs item #745935, was opened at 2003-05-30 10:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=745935&group_id=37116

Category: Script bugs
Group: All Games
Status: Open
Resolution: None
Priority: 5
Submitted By: Torbjörn Andersson (eriktorbjorn)
Assigned to: Nobody/Anonymous (nobody)
Summary: ALL: o5_getClosestObjActor() oddity

Initial Comment:
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.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=745935&group_id=37116




More information about the Scummvm-tracker mailing list