Hack for the hack. Fix cache bug.

Maybe all notes should be assigned a player
number regardless of mode here: I do not feel
NoteDataUtil should depend on Style.h like this.
This commit is contained in:
Jason Felds
2011-01-02 12:00:25 -05:00
parent ff5520f483
commit 40f12aa61c
+2 -1
View File
@@ -454,7 +454,8 @@ void NoteDataUtil::SplitCompositeNoteData( const NoteData &in, vector<NoteData>
occuring to begin with, but at this time, I am unsure how to deal with it.
Hopefully this hack can be removed soon. -- Jason "Wolfman2000" Felds
*/
if( GAMESTATE->GetCurrentStyle()->m_StyleType == StyleType_TwoPlayersSharedSides
const Style *curStyle = GAMESTATE->GetCurrentStyle();
if( (curStyle == NULL || curStyle->m_StyleType == StyleType_TwoPlayersSharedSides )
&& int( tn.pn ) > NUM_PlayerNumber )
{
tn.pn = PLAYER_1;