Opened 22 years ago

Closed 22 years ago

Last modified 6 years ago

#763 closed defect (fixed)

o5_resourceRoutines: mistake?

Reported by: SF/hibernatus Owned by: fingolfin
Priority: normal Component: Engine: SCUMM
Version: Keywords:
Cc: Game:

Description

In Scumm_v5::o5_resourceRoutines, you do "_opcode &= 0x3F" and later you use getVarOrDirectWord(0x40) (case 20).

Ticket imported from: #734057. Ticket imported from: bugs/763.

Change History (5)

comment:1 by SF/trinity78, 22 years ago

Please,

only post patches in the patch-tracker. this is certainly not a patch. either use the forum if this is a question or if you think this is a bug use the bug tracker. only post patches here. patches are usually diff-files which contain source code. this source code either fixes a bug or adds a new feature to the scummvm code base.

thx

comment:2 by fingolfin, 22 years ago

Trinity78 is right. But still, well spotted ;-) I think I introduced this stupid goof <sigh>.

I am very busy, dunno if I find the time to fix it (even though it's trivial, but I mean busy as in: I shouldn't even write this). Probably just have to copy opcode to another var, then use that for the switch (IIRC we "& 0x3f" _opcode to switch on it, right?)

comment:3 by fingolfin, 22 years ago

Fixed in CVS.

comment:4 by fingolfin, 22 years ago

Owner: set to fingolfin
Resolution: fixed
Status: newclosed

comment:5 by digitall, 6 years ago

Component: Engine: SCUMM
Note: See TracTickets for help on using tickets.