aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2014-02-06 23:38:30 +0200
committerEugene Sandulenko2014-02-06 23:50:38 +0200
commitf5ea651e39dfce1a16367ef36b1532d74079f45a (patch)
tree322e6a044e4f3efe008986d6f17cb71936dd8d01 /engines/fullpipe
parent998e86ae4e5c8f76523e789de54e09f6184e5244 (diff)
downloadscummvm-rg350-f5ea651e39dfce1a16367ef36b1532d74079f45a.tar.gz
scummvm-rg350-f5ea651e39dfce1a16367ef36b1532d74079f45a.tar.bz2
scummvm-rg350-f5ea651e39dfce1a16367ef36b1532d74079f45a.zip
FULLPIPE: Implement BallChain::init()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/scenes.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp
index 3f9d6c372e..b60e2fc66f 100644
--- a/engines/fullpipe/scenes.cpp
+++ b/engines/fullpipe/scenes.cpp
@@ -1376,7 +1376,20 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
}
void BallChain::init(Ball **ball) {
- warning("STUB: BallChain::init()");
+ *ball = pTail;
+ pTail = (Ball *)ball;
+ numBalls--;
+
+ if (!numBalls) {
+ for (Ball *i = pHead; i; i = i->p0 )
+ ;
+ numBalls = 0;
+ pTail = 0;
+ field_8 = 0;
+ pHead = 0;
+ free(cPlex);
+ cPlex = 0;
+ }
}
} // End of namespace Fullpipe