diff options
author | Eugene Sandulenko | 2014-03-23 22:10:15 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-03-24 00:08:43 +0200 |
commit | 72b1d82d4fdb6defec3474109a3ec44670f738cb (patch) | |
tree | fdd0152c26e791bd5b0ec0ada7ece228fbb011ec /engines/fullpipe | |
parent | 40b085c905473a5549eb0edb204b5d5f53e53e7c (diff) | |
download | scummvm-rg350-72b1d82d4fdb6defec3474109a3ec44670f738cb.tar.gz scummvm-rg350-72b1d82d4fdb6defec3474109a3ec44670f738cb.tar.bz2 scummvm-rg350-72b1d82d4fdb6defec3474109a3ec44670f738cb.zip |
FULLPIPE: More code to scene29_initScene()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/scenes/scene29.cpp | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/engines/fullpipe/scenes/scene29.cpp b/engines/fullpipe/scenes/scene29.cpp index 11012331b6..dabc487006 100644 --- a/engines/fullpipe/scenes/scene29.cpp +++ b/engines/fullpipe/scenes/scene29.cpp @@ -67,15 +67,18 @@ void scene29_initScene(Scene *sc) { while (v3); } + StaticANIObject *ani; + g_vars->scene29_var08.numBalls = 0; g_vars->scene29_var08.pTail = 0; g_vars->scene29_var08.field_8 = 0; g_vars->scene29_var08.pHead = 0; CPlex::FreeDataChain(g_vars->scene29_var08.cPlex); g_vars->scene29_var08.cPlex = 0; - v4 = Scene_getStaticANIObject1ById(sc, ANI_SHELL_GREEN, -1); - v5 = BallChain_sub04(&g_vars->scene29_var05, g_vars->scene29_var05.field_8, 0); - v5->ani = v4; + + ani = sc->getStaticANIObject1ById(ANI_SHELL_GREEN, -1); + v5 = g_vars->scene29_var05->sub04(g_vars->scene29_var05.field_8, 0); + v5->ani = ani; if (g_vars->scene29_var05.field_8) g_vars->scene29_var05.field_8->p0 = v5; @@ -83,20 +86,19 @@ void scene29_initScene(Scene *sc) { g_vars->scene29_var05.pHead = v5; g_vars->scene29_var05.field_8 = v5; - v22 = 2; - do { - v7 = StaticANIObject_ctorCopy(v6, v4); - Scene_addStaticANIObject(sc, v7, 1); - v8 = BallChain_sub04(&g_vars->scene29_var05, g_vars->scene29_var05.field_8, 0); - v8->ani = v7; + for (int i = 0; i < 2; i++) { + ani = new StaticANIObject(ani); + + sc->addStaticANIObject(ani, 1); + v8 = g_vars->scene29_var05->sub04(g_vars->scene29_var05.field_8, 0); + v8->ani = ani; if (g_vars->scene29_var05.field_8) g_vars->scene29_var05.field_8->p0 = v8; else g_vars->scene29_var05.pHead = v8; g_vars->scene29_var05.field_8 = v8; - --v22; - } while (v22); + } v9 = g_vars->scene29_var06.pHead; if (g_vars->scene29_var06.pHead) { @@ -126,9 +128,9 @@ void scene29_initScene(Scene *sc) { CPlex::FreeDataChain(g_vars->scene29_var07.cPlex); g_vars->scene29_var07.cPlex = 0; - v11 = Scene_getStaticANIObject1ById(sc, ANI_SHELL_RED, -1); - v12 = BallChain_sub04(&g_vars->scene29_var06, g_vars->scene29_var06.field_8, 0); - v12->ani = v11; + ani = sc->getStaticANIObject1ById(ANI_SHELL_RED, -1); + v12 = g_vars->scene29_var06->sub04(g_vars->scene29_var06.field_8, 0); + v12->ani = ani; if (g_vars->scene29_var06.field_8) g_vars->scene29_var06.field_8->p0 = v12; @@ -137,24 +139,23 @@ void scene29_initScene(Scene *sc) { g_vars->scene29_var06.field_8 = v12; - v23 = 2; + for (int i = 0; i < 2; i++) { + ani = new StaticANIObject(ani); + ac->addStaticANIObject(sc, ani, 1); + v15 = g_vars->scene29_var06->sub04(g_vars->scene29_var06.field_8, 0); + v15->ani = ani; - do { - v14 = StaticANIObject_ctorCopy(v13, v11); - Scene_addStaticANIObject(sc, v14, 1); - v15 = BallChain_sub04(&g_vars->scene29_var06, g_vars->scene29_var06.field_8, 0); - v15->ani = v14; - if (g_vars->scene29_var06.field_8 ) + if (g_vars->scene29_var06.field_8) g_vars->scene29_var06.field_8->p0 = v15; else g_vars->scene29_var06.pHead = v15; + g_vars->scene29_var06.field_8 = v15; - --v23; - } while ( v23 ); + } ObArray_SetSize_0x0C((ObArray *)&g_vars->scene29_var19, 0, -1); - StaticANIObject *ani = new StaticANIObject(accessScene(SC_COMMON)->getStaticANIObject1ById(ANI_BEARDED_CMN, -1)); + ani = new StaticANIObject(accessScene(SC_COMMON)->getStaticANIObject1ById(ANI_BEARDED_CMN, -1)); ani->_statics = ani->getStaticsById(ST_BRDCMN_EMPTY); |