diff options
author | Strangerke | 2014-08-11 00:52:03 +0200 |
---|---|---|
committer | Strangerke | 2014-08-11 00:52:47 +0200 |
commit | 6f2bc7fc1f5426a01d196e5a61faafbb7b40ad13 (patch) | |
tree | e8ca03b23db097a00f4dc18e276f9c361c03e6b6 /engines/access | |
parent | b2596cab0edc0a4709fba872ca0c20a782caabe4 (diff) | |
download | scummvm-rg350-6f2bc7fc1f5426a01d196e5a61faafbb7b40ad13.tar.gz scummvm-rg350-6f2bc7fc1f5426a01d196e5a61faafbb7b40ad13.tar.bz2 scummvm-rg350-6f2bc7fc1f5426a01d196e5a61faafbb7b40ad13.zip |
ACCESS: Implement 2 opcodes
Diffstat (limited to 'engines/access')
-rw-r--r-- | engines/access/scripts.cpp | 24 | ||||
-rw-r--r-- | engines/access/scripts.h | 4 |
2 files changed, 21 insertions, 7 deletions
diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp index 2a825212fd..a6ecfa3eff 100644 --- a/engines/access/scripts.cpp +++ b/engines/access/scripts.cpp @@ -92,10 +92,10 @@ void Scripts::executeCommand(int commandIndex) { &Scripts::CMDCHECKFRAME, &Scripts::cmdCheckAnim, &Scripts::CMDSND, &Scripts::cmdRetNeg, &Scripts::cmdRetPos, &Scripts::cmdCheckLoc, &Scripts::cmdSetAnim, &Scripts::CMDDISPINV, &Scripts::CMDSETTIMER, - &Scripts::CMDSETTIMER, &Scripts::CMDCHECKTIMER, &Scripts::CMDSETTRAVEL, - &Scripts::CMDSETTRAVEL, &Scripts::CMDSETVID, &Scripts::CMDPLAYVID, + &Scripts::CMDSETTIMER, &Scripts::CMDCHECKTIMER, &Scripts::cmdSetTravel, + &Scripts::cmdSetTravel, &Scripts::CMDSETVID, &Scripts::CMDPLAYVID, &Scripts::cmdPlotImage, &Scripts::cmdSetDisplay, &Scripts::CMDSETBUFFER, - &Scripts::CMDSETSCROLL, &Scripts::CMDSAVERECT, &Scripts::CMDSAVERECT, + &Scripts::cmdSetScroll, &Scripts::CMDSAVERECT, &Scripts::CMDSAVERECT, &Scripts::CMDSETBUFVID, &Scripts::CMDPLAYBUFVID, &Scripts::cmeRemoveLast, &Scripts::CMDSPECIAL, &Scripts::CMDSPECIAL, &Scripts::CMDSPECIAL, &Scripts::CMDSETCYCLE, &Scripts::CMDCYCLE, &Scripts::CMDCHARSPEAK, @@ -263,7 +263,14 @@ void Scripts::cmdSetAnim() { void Scripts::CMDDISPINV() { } void Scripts::CMDSETTIMER() { } void Scripts::CMDCHECKTIMER() { } -void Scripts::CMDSETTRAVEL() { } + +void Scripts::cmdSetTravel() { + if (_vm->_selectCommand == 5) + cmdGoto(); + else + _data->skip(2); +} + void Scripts::CMDSETVID() { } void Scripts::CMDPLAYVID() { } @@ -284,7 +291,14 @@ void Scripts::cmdSetDisplay() { } void Scripts::CMDSETBUFFER() { } -void Scripts::CMDSETSCROLL() { } + +void Scripts::cmdSetScroll() { + _vm->_screen->_scrollCol = _data->readUint16LE(); + _vm->_screen->_scrollRow = _data->readUint16LE(); + _vm->_screen->_scrollX = 0; + _vm->_screen->_scrollY = 0; +} + void Scripts::CMDSAVERECT() { } void Scripts::CMDSETBUFVID() { } void Scripts::CMDPLAYBUFVID() { } diff --git a/engines/access/scripts.h b/engines/access/scripts.h index 0bdc746d78..3173c8a587 100644 --- a/engines/access/scripts.h +++ b/engines/access/scripts.h @@ -75,13 +75,13 @@ protected: void CMDDISPINV(); void CMDSETTIMER(); void CMDCHECKTIMER(); - void CMDSETTRAVEL(); + void cmdSetTravel(); void CMDSETVID(); void CMDPLAYVID(); void cmdPlotImage(); void cmdSetDisplay(); void CMDSETBUFFER(); - void CMDSETSCROLL(); + void cmdSetScroll(); void CMDSAVERECT(); void CMDSETBUFVID(); void CMDPLAYBUFVID(); |