Skip to content

Commit

Permalink
ILLUSIONS: Implement sequence opcode 32
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoe123 committed May 23, 2018
1 parent 4b3419b commit 30cdb32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engines/illusions/sequenceopcodes.cpp
Expand Up @@ -84,7 +84,7 @@ void SequenceOpcodes::initOpcodes() {
OPCODE(28, opNotifyThreadId1);
OPCODE(29, opSetPathCtrY);
// 30-31 unused in Duckman, CHECKME BBDOU
// TODO OPCODE(32, );
OPCODE(32, opDisablePathWalkPoints);
OPCODE(33, opSetPathWalkPoints);
OPCODE(34, opDisableAutoScale);
OPCODE(35, opSetScale);
Expand Down Expand Up @@ -292,6 +292,10 @@ void SequenceOpcodes::opSetPathCtrY(Control *control, OpCall &opCall) {
control->_actor->_pathCtrY = pathCtrY;
}

void SequenceOpcodes::opDisablePathWalkPoints(Control *control, OpCall &opCall) {
control->_actor->_flags &= ~2;
}

void SequenceOpcodes::opSetPathWalkPoints(Control *control, OpCall &opCall) {
ARG_INT16(pathWalkPointsIndex);
BackgroundResource *bgRes = _vm->_backgroundInstances->getActiveBgResource();
Expand Down
1 change: 1 addition & 0 deletions engines/illusions/sequenceopcodes.h
Expand Up @@ -69,6 +69,7 @@ class SequenceOpcodes {
void opFaceActor(Control *control, OpCall &opCall);
void opNotifyThreadId1(Control *control, OpCall &opCall);
void opSetPathCtrY(Control *control, OpCall &opCall);
void opDisablePathWalkPoints(Control *control, OpCall &opCall);
void opSetPathWalkPoints(Control *control, OpCall &opCall);
void opDisableAutoScale(Control *control, OpCall &opCall);
void opSetScale(Control *control, OpCall &opCall);
Expand Down

0 comments on commit 30cdb32

Please sign in to comment.