From ba52b4aca701bdf7bead7a50baccee9868a3406c Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 29 Nov 2013 03:06:07 -0500 Subject: FULLPIPE: Some renames in scene04 --- engines/fullpipe/scenes/scene04.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'engines/fullpipe/scenes') diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp index f36dc48e8a..30b5f0a254 100644 --- a/engines/fullpipe/scenes/scene04.cpp +++ b/engines/fullpipe/scenes/scene04.cpp @@ -44,17 +44,17 @@ static const int scene04_speakerPhases[] = { void scene04_speakerCallback(int *phase) { if (g_vars->scene04_soundPlaying) { - if (g_vars->scene04_var17 >= 0) { - *phase = scene04_speakerPhases[g_vars->scene04_var17 + 6 * g_vars->scene04_var16]; + if (g_vars->scene04_speakerPhase >= 0) { + *phase = scene04_speakerPhases[g_vars->scene04_speakerPhase + 6 * g_vars->scene04_speakerVariant]; - g_vars->scene04_var17++; + g_vars->scene04_speakerPhase++; - if (scene04_speakerPhases[g_vars->scene04_var17 + 6 * g_vars->scene04_var16] < 0) { - g_vars->scene04_var17 = 0; - g_vars->scene04_var16 = g_fullpipe->_rnd->getRandomNumber(2); + if (scene04_speakerPhases[g_vars->scene04_speakerPhase + 6 * g_vars->scene04_speakerVariant] < 0) { + g_vars->scene04_speakerPhase = 0; + g_vars->scene04_speakerVariant = g_fullpipe->_rnd->getRandomNumber(2); } } else { - ++g_vars->scene04_var17; + ++g_vars->scene04_speakerPhase; } } } @@ -188,8 +188,8 @@ void scene04_initScene(Scene *sc) { g_vars->scene04_speaker->_callback2 = scene04_speakerCallback; g_vars->scene04_speaker->startAnim(MV_SPK4_PLAY, 0, -1); - g_vars->scene04_var16 = 0; - g_vars->scene04_var17 = 0; + g_vars->scene04_speakerVariant = 0; + g_vars->scene04_speakerPhase = 0; g_fullpipe->initArcadeKeys("SC_4"); } -- cgit v1.2.3