mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 15:48:48 +00:00
ACCESS: Implement cmdCheckFrame
This commit is contained in:
parent
a0b9afded3
commit
5344143027
@ -89,7 +89,7 @@ void Scripts::executeCommand(int commandIndex) {
|
||||
&Scripts::cmdSetFlag, &Scripts::cmdCheckFlag, &Scripts::cmdGoto,
|
||||
&Scripts::cmdSetInventory, &Scripts::cmdSetInventory, &Scripts::cmdCheckInventory,
|
||||
&Scripts::CMDSETTEX, &Scripts::CMDNEWROOM, &Scripts::CMDCONVERSE,
|
||||
&Scripts::CMDCHECKFRAME, &Scripts::cmdCheckAnim, &Scripts::CMDSND,
|
||||
&Scripts::cmdCheckFrame, &Scripts::cmdCheckAnim, &Scripts::CMDSND,
|
||||
&Scripts::cmdRetNeg, &Scripts::cmdRetPos, &Scripts::cmdCheckLoc,
|
||||
&Scripts::cmdSetAnim, &Scripts::CMDDISPINV, &Scripts::CMDSETTIMER,
|
||||
&Scripts::CMDSETTIMER, &Scripts::CMDCHECKTIMER, &Scripts::cmdSetTravel,
|
||||
@ -222,7 +222,17 @@ void Scripts::cmdCheckInventory() {
|
||||
void Scripts::CMDSETTEX() { error("TODO"); }
|
||||
void Scripts::CMDNEWROOM() { error("TODO"); }
|
||||
void Scripts::CMDCONVERSE() { error("TODO"); }
|
||||
void Scripts::CMDCHECKFRAME() { error("TODO"); }
|
||||
|
||||
void Scripts::cmdCheckFrame() {
|
||||
int id = _data->readUint16LE();
|
||||
Animation *anim = _vm->_animation->findAnimation(id);
|
||||
|
||||
int frame = _data->readUint16LE();
|
||||
if (anim->_frameNumber == frame)
|
||||
cmdGoto();
|
||||
else
|
||||
_data->skip(2);
|
||||
}
|
||||
|
||||
void Scripts::cmdCheckAnim() {
|
||||
int id = _data->readUint16LE();
|
||||
|
@ -66,7 +66,7 @@ protected:
|
||||
void CMDSETTEX();
|
||||
void CMDNEWROOM();
|
||||
void CMDCONVERSE();
|
||||
void CMDCHECKFRAME();
|
||||
void cmdCheckFrame();
|
||||
void cmdCheckAnim();
|
||||
void CMDSND();
|
||||
void cmdRetNeg();
|
||||
|
Loading…
Reference in New Issue
Block a user