aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-05-24 11:16:42 +0300
committerEugene Sandulenko2014-05-24 11:17:03 +0300
commitd197bb04afa9be420d92b5d927d496ddc881d642 (patch)
treec7725491f133fcb3b379c6ddfcbd3c75e707d8cf
parent46d0e8b76cb0130c01dcddf4dd3483c1099b5a7c (diff)
downloadscummvm-rg350-d197bb04afa9be420d92b5d927d496ddc881d642.tar.gz
scummvm-rg350-d197bb04afa9be420d92b5d927d496ddc881d642.tar.bz2
scummvm-rg350-d197bb04afa9be420d92b5d927d496ddc881d642.zip
FULLPIPE: Simplify syntax
-rw-r--r--engines/fullpipe/motion.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index 69dd64886a..af615cd95a 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -752,7 +752,7 @@ MessageQueue *MovGraph::doWalkTo(StaticANIObject *subj, int xpos, int ypos, int
int idx = getItemIndexByStaticAni(subj);
for (int i = 0; i < _items[idx]->count; i++) {
- if (_items[idx]->movitems->operator[](i)->movarr == goal) {
+ if ((*_items[idx]->movitems)[i]->movarr == goal) {
if (subj->_movement) {
Common::Point point;
@@ -782,7 +782,7 @@ MessageQueue *MovGraph::doWalkTo(StaticANIObject *subj, int xpos, int ypos, int
if (_items[idx]->count > 0) {
int arridx = 0;
- while (_items[idx]->movitems->operator[](arridx)->movarr != goal) {
+ while ((*_items[idx]->movitems)[arridx]->movarr != goal) {
arridx++;
if (arridx >= _items[idx]->count) {
@@ -792,8 +792,8 @@ MessageQueue *MovGraph::doWalkTo(StaticANIObject *subj, int xpos, int ypos, int
}
_items[idx]->movarr._movSteps.clear();
- _items[idx]->movarr = *_items[idx]->movitems->operator[](arridx)->movarr;
- _items[idx]->movarr._movSteps = _items[idx]->movitems->operator[](arridx)->movarr->_movSteps;
+ _items[idx]->movarr = *(*_items[idx]->movitems)[arridx]->movarr;
+ _items[idx]->movarr._movSteps = (*_items[idx]->movitems)[arridx]->movarr->_movSteps;
_items[idx]->movarr._afield_8 = -1;
_items[idx]->movarr._link = 0;
@@ -929,7 +929,7 @@ MessageQueue *MovGraph::method50(StaticANIObject *ani, MovArr *movarr, int stati
return 0;
for (movidx = 0; movidx < _items[idx]->count; movidx++) {
- if (_items[idx]->movitems->operator[](movidx)->movarr == movarr) {
+ if ((*_items[idx]->movitems)[movidx]->movarr == movarr) {
done = true;
break;
@@ -939,8 +939,8 @@ MessageQueue *MovGraph::method50(StaticANIObject *ani, MovArr *movarr, int stati
}
_items[idx]->movarr._movSteps.clear();
- _items[idx]->movarr = *_items[idx]->movitems->operator[](movidx)->movarr;
- _items[idx]->movarr._movSteps = _items[idx]->movitems->operator[](movidx)->movarr->_movSteps;
+ _items[idx]->movarr = *(*_items[idx]->movitems)[movidx]->movarr;
+ _items[idx]->movarr._movSteps = (*_items[idx]->movitems)[movidx]->movarr->_movSteps;
_items[idx]->movarr._afield_8 = -1;
_items[idx]->movarr._link = 0;