From f5ea651e39dfce1a16367ef36b1532d74079f45a Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 6 Feb 2014 23:38:30 +0200 Subject: FULLPIPE: Implement BallChain::init() --- engines/fullpipe/scenes.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'engines/fullpipe') 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 -- cgit v1.2.3