mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-15 08:39:45 +00:00
ACCESS: MM - Fix cmdSaveRect, implement cmdCheckTravel
This commit is contained in:
parent
cc75fb5fe0
commit
7323140847
@ -568,10 +568,11 @@ void Scripts::cmdSetScroll() {
|
||||
}
|
||||
|
||||
void Scripts::cmdSaveRect() {
|
||||
if (_vm->_vidEnd)
|
||||
cmdGoto();
|
||||
else
|
||||
_data->skip(2);
|
||||
int x = _vm->_screen->_lastBoundsX;
|
||||
int y = _vm->_screen->_lastBoundsY;
|
||||
int w = _vm->_screen->_lastBoundsW;
|
||||
int h = _vm->_screen->_lastBoundsH;
|
||||
_vm->_newRects.push_back(Common::Rect(x, y, x + w, x + h));
|
||||
}
|
||||
|
||||
void Scripts::cmdVideoEnded() {
|
||||
@ -892,7 +893,13 @@ void Scripts::cmdPushLocation() {
|
||||
}
|
||||
|
||||
void Scripts::cmdCheckTravel() {
|
||||
error("TODO: DEMO - cmdCheckTravel");
|
||||
int idx = _data->readSint16LE();
|
||||
int val = _data->readUint16LE();
|
||||
|
||||
if (_vm->TRAVEL[idx] == val)
|
||||
cmdGoto();
|
||||
else
|
||||
_data->skip(2);
|
||||
}
|
||||
|
||||
void Scripts::cmdBlock() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user