aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/fullpipe/scenes.cpp')
-rw-r--r--engines/fullpipe/scenes.cpp72
1 files changed, 0 insertions, 72 deletions
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp
index c7c303f2e0..d37f5dba39 100644
--- a/engines/fullpipe/scenes.cpp
+++ b/engines/fullpipe/scenes.cpp
@@ -1436,76 +1436,4 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
}
}
-void BallChain::init(Ball **ball) {
- *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;
- }
-}
-
-Ball *BallChain::sub04(Ball *ballP, Ball *ballN) {
- if (!pTail) {
- if (!cPlexLen)
- error("BallChain::sub04: cPlexLen is 0");
-
- cPlex = (byte *)calloc(cPlexLen, sizeof(Ball));
-
- Ball *runPtr = (Ball *)&cPlex[(cPlexLen - 1) * sizeof(Ball)];
-
- for (int i = 0; i < cPlexLen; i++) {
- runPtr->p0 = pTail;
- pTail = runPtr;
-
- runPtr--;
- }
- }
-
- Ball *res = pTail;
-
- pTail = res->p0;
- res->p1 = ballP;
- res->p0 = ballN;
- numBalls++;
- res->ani = 0;
-
- return res;
-}
-
-void BallChain::removeBall(Ball *ball) {
- if (ball == pHead)
- pHead = ball->p0;
- else
- ball->p1->p0 = ball->p0;
-
- if (ball == field_8)
- field_8 = ball->p1;
- else
- ball->p0->p1 = ball->p1;
-
- ball->p0 = pTail;
- pTail = ball;
-
- numBalls--;
-
- if (!numBalls) {
- numBalls = 0;
- pTail = 0;
- field_8 = 0;
- pHead = 0;
- free(cPlex);
- cPlex = 0;
- }
-}
-
-
} // End of namespace Fullpipe