aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2014-11-10 13:29:24 -0500
committerPaul Gilbert2014-12-12 22:29:44 -0500
commit340a3fa91bc6168f5e073a33afd48a083fb14d10 (patch)
treef20e543358fd91192aeb0d9fd7fa0ecb83f15770 /engines
parent878038fe07ed750a4616d4a86dfb2a9f9873d245 (diff)
downloadscummvm-rg350-340a3fa91bc6168f5e073a33afd48a083fb14d10.tar.gz
scummvm-rg350-340a3fa91bc6168f5e073a33afd48a083fb14d10.tar.bz2
scummvm-rg350-340a3fa91bc6168f5e073a33afd48a083fb14d10.zip
ACCESS: Fix player walking in jungle cutscene
Diffstat (limited to 'engines')
-rw-r--r--engines/access/amazon/amazon_scripts.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/engines/access/amazon/amazon_scripts.cpp b/engines/access/amazon/amazon_scripts.cpp
index 3ccca2bd2d..a22f04b0de 100644
--- a/engines/access/amazon/amazon_scripts.cpp
+++ b/engines/access/amazon/amazon_scripts.cpp
@@ -461,7 +461,7 @@ void AmazonScripts::mWhileJWalk() {
EventsManager &events = *_vm->_events;
Player &player = *_vm->_player;
- const int jungleObj[7][4] = {
+ static const int JUNGLE_OBJ[7][4] = {
{2, 77, 0, 40},
{0, 290, 0, 50},
{1, 210, 0, 70},
@@ -478,15 +478,16 @@ void AmazonScripts::mWhileJWalk() {
screen.setBufferScan();
screen._scrollX = 0;
+ // Build the initial jungle scene and fade it in
_vm->_room->buildScreen();
_vm->copyBF2Vid();
screen.fadeIn();
- // KEYFLG = 0;
+ // Set up the player to walk horizontally
player._xFlag = 1;
player._yFlag = 0;
player._moveTo.x = 160;
- player._move = UP;
+ player._playerMove = true;
_game->_plane._xCount = 2;
_xTrack = 10;
@@ -502,10 +503,10 @@ void AmazonScripts::mWhileJWalk() {
_pNumObj = 7;
for (int i = 0; i < _pNumObj; i++) {
_pObject[i] = _vm->_objectsTable[24];
- _pImgNum[i] = jungleObj[i][0];
- _pObjX[i] = jungleObj[i][1];
- _pObjY[i] = jungleObj[i][2];
- _pObjZ[i] = jungleObj[i][3];
+ _pImgNum[i] = JUNGLE_OBJ[i][0];
+ _pObjX[i] = JUNGLE_OBJ[i][1];
+ _pObjY[i] = JUNGLE_OBJ[i][2];
+ _pObjZ[i] = JUNGLE_OBJ[i][3];
_pObjXl[i] = _pObjYl[i] = 0;
}