don't show forced beginner mods in attack list

This commit is contained in:
Chris Danford
2005-04-26 20:46:06 +00:00
parent 2576c4a87a
commit 23ad0104c6
3 changed files with 8 additions and 2 deletions
+2
View File
@@ -41,6 +41,8 @@ void ActiveAttackList::Refresh()
if( !attack.bOn )
continue; /* hasn't started yet */
if( !attack.bShowInAttackList )
continue;
PlayerOptions po;
po.FromString( attack.sModifier, true );
+5 -1
View File
@@ -14,6 +14,7 @@ struct Attack
CString sModifier;
bool bOn; // set and used by GAMESTATE
bool bGlobal; // true for song-wide course mods
bool bShowInAttackList;
void MakeBlank()
{
@@ -23,6 +24,7 @@ struct Attack
sModifier = CString();
bOn = false;
bGlobal = false;
bShowInAttackList = true;
}
Attack() { MakeBlank(); }
Attack(
@@ -31,7 +33,8 @@ struct Attack
float fSecsRemaining_,
CString sModifier_,
bool bOn_,
bool bGlobal_ )
bool bGlobal_,
bool bShowInAttackList_ = true )
{
level = level_;
fStartSecond = fStartSecond_;
@@ -39,6 +42,7 @@ struct Attack
sModifier = sModifier_;
bOn = bOn_;
bGlobal = bGlobal_;
bShowInAttackList = bShowInAttackList_;
}
void GetAttackBeats( const Song *song, const PlayerState* pPlayerState, float &fStartBeat, float &fEndBeat ) const;
+1 -1
View File
@@ -741,7 +741,7 @@ void ScreenGameplay::InitSongQueues()
AttackArray aa;
if( pSteps->GetDifficulty() == DIFFICULTY_BEGINNER && (bool)USE_FORCED_MODIFIERS_IN_BEGINNER )
aa.push_back( Attack(ATTACK_LEVEL_1, 0, 0, FORCED_MODIFIERS_IN_BEGINNER, false, true) );
aa.push_back( Attack(ATTACK_LEVEL_1, 0, 0, FORCED_MODIFIERS_IN_BEGINNER, false, true, false) ); // don't show in AttackList
m_asModifiersQueue[p].push_back( aa );
}