fixed a couple stupid crashes
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
/*
|
/*
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
File: Background.cpp
|
Class: Background
|
||||||
|
|
||||||
Desc: Background behind arrows while dancing
|
Desc: Background behind arrows while dancing
|
||||||
|
|
||||||
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
||||||
|
Chris Danford
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -273,6 +274,11 @@ void Background::Update( float fDeltaTime )
|
|||||||
for( int i=0; i<m_aAnimSegs.GetSize()-1; i++ )
|
for( int i=0; i<m_aAnimSegs.GetSize()-1; i++ )
|
||||||
if( m_aAnimSegs[i+1].m_fStartBeat > m_fSongBeat )
|
if( m_aAnimSegs[i+1].m_fStartBeat > m_fSongBeat )
|
||||||
break;
|
break;
|
||||||
|
if( i == m_aAnimSegs.GetSize() )
|
||||||
|
{
|
||||||
|
m_pCurBGA = NULL;
|
||||||
|
break; // no animations
|
||||||
|
}
|
||||||
int iNewAnimationSegment = i;
|
int iNewAnimationSegment = i;
|
||||||
if( iNewAnimationSegment > m_iCurAnimSegment )
|
if( iNewAnimationSegment > m_iCurAnimSegment )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ const float SECONDS_BEFORE_DEMONSTRATION = 30;
|
|||||||
|
|
||||||
ScreenTitleMenu::ScreenTitleMenu()
|
ScreenTitleMenu::ScreenTitleMenu()
|
||||||
{
|
{
|
||||||
|
MUSIC->Stop();
|
||||||
LOG->Trace( "ScreenTitleMenu::ScreenTitleMenu()" );
|
LOG->Trace( "ScreenTitleMenu::ScreenTitleMenu()" );
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user