aboutsummaryrefslogtreecommitdiff
path: root/engines/access/amazon/amazon_logic.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-12-03 22:25:37 -0500
committerPaul Gilbert2014-12-12 22:59:14 -0500
commit889a564e73e824f736706345c19497007a321df7 (patch)
treeeec86e9d868c1dbe9bf27e01e27c906123a28754 /engines/access/amazon/amazon_logic.cpp
parent7571fdd4b19f5f1bf3008d764c85c254ed86f635 (diff)
downloadscummvm-rg350-889a564e73e824f736706345c19497007a321df7.tar.gz
scummvm-rg350-889a564e73e824f736706345c19497007a321df7.tar.bz2
scummvm-rg350-889a564e73e824f736706345c19497007a321df7.zip
ACCESS: Fix definition of river data structures
Diffstat (limited to 'engines/access/amazon/amazon_logic.cpp')
-rw-r--r--engines/access/amazon/amazon_logic.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/access/amazon/amazon_logic.cpp b/engines/access/amazon/amazon_logic.cpp
index 65519f3b17..039cc01342 100644
--- a/engines/access/amazon/amazon_logic.cpp
+++ b/engines/access/amazon/amazon_logic.cpp
@@ -1461,7 +1461,7 @@ void River::initRiver() {
}
_riverIndex = _vm->_riverFlag;
- _topList = RIVEROBJECTTBL[_riverIndex];
+ _topList = RIVER_OBJECTS[_riverIndex][RIVER_START];
updateObstacles();
riverSetPhysX();
_canoeDir = 0;
@@ -1637,7 +1637,7 @@ void River::moveCanoe2() {
void River::updateObstacles() {
RiverStruct *cur;
- for (cur = _topList; cur < RIVEROBJECTTBL[_riverIndex + 1]; ++cur) {
+ for (cur = _topList; cur < RIVER_OBJECTS[_riverIndex][RIVER_END]; ++cur) {
int val = cur->_field1 + cur->_field3 - 1;
if (val < _screenVertX)
break;
@@ -1646,7 +1646,7 @@ void River::updateObstacles() {
_topList = cur;
_botList = cur;
- while (cur < RIVEROBJECTTBL[_riverIndex + 1]) {
+ while (cur < RIVER_OBJECTS[_riverIndex][RIVER_END]) {
++cur;
val = cur->_field1 + cur->_field3 - 1;
if (val < _screenVertX || (cur->_field3 >= (_screenVirtX + 319)))