Opened 17 years ago

Closed 17 years ago

Last modified 13 months ago

#8181 closed patch

CMI: More actor direction fixes

Reported by: eriktorbjorn Owned by: fingolfin
Priority: normal Component: Engine: SCUMM
Keywords: Cc:
Game: Monkey Island 3

Description

I didn't realize it when I submitted the first patch,
but since the direction an actor should turn to when
facing an object is stored as a byte I can't store the
angle as I first thought.

This patch attempts to fix that. It's slightly hacky,
but I didn't want to introduce yet another savegame
version.

This still doesn't fix all of the actor direction
problems. For instance, Guybrush faces the wrong
direction when walking the stairs in the Goodsoup
Hotel. That's what the second patch tries to fix.

Ticket imported from: #696030. Ticket imported from: patches/286.

Attachments (3)

cmi-direction.diff (919 bytes ) - added by eriktorbjorn 17 years ago.
Patch #1, against a March 1 CVS snapshot
cmi-direction2.diff (538 bytes ) - added by eriktorbjorn 17 years ago.
Patch #2, against a March 1 CVS snapshot
cmi-direction-break-savegame.diff (1.7 KB ) - added by eriktorbjorn 17 years ago.
Alternative version of patch #1 (needs new savegame version)

Download all attachments as: .zip

Change History (6)

by eriktorbjorn, 17 years ago

Attachment: cmi-direction.diff added

Patch #1, against a March 1 CVS snapshot

by eriktorbjorn, 17 years ago

Attachment: cmi-direction2.diff added

Patch #2, against a March 1 CVS snapshot

comment:1 by eriktorbjorn, 17 years ago

I forgot to mention: The return value from toSimpleDir() may
have to be cast to a byte to avoid warnings on some
compilers. I didn't see GCC complain, though.

by eriktorbjorn, 17 years ago

Alternative version of patch #1 (needs new savegame version)

comment:2 by fingolfin, 17 years ago

Owner: set to fingolfin
Status: newclosed

comment:3 by digitall, 13 months ago

Component: Engine: SCUMM
Game: Monkey Island 3
Note: See TracTickets for help on using tickets.