syncing with sm4svn part 1.

7534867: fix SSM crashes when selecting a song with only one player enabled
cddaab5: simplify SongUtil::GetStepsTypeAndDifficultyFromSortOrder
615aab0: add Style::GetUsesCenteredArrows (doubles + routine)
17f38e7: sanity check
[all code changes by Glenn Maynard]
This commit is contained in:
AJ Kelly
2010-02-13 12:50:34 -06:00
parent 484820424b
commit a7a8b6b94d
5 changed files with 33 additions and 27 deletions
+11
View File
@@ -20,6 +20,17 @@
#include "NoteData.h"
#include <float.h>
bool Style::GetUsesCenteredArrows() const
{
switch( m_StyleType )
{
case StyleType_OnePlayerTwoSides:
case StyleType_TwoPlayersSharedSides:
return true;
default:
return false;
}
}
void Style::GetTransformedNoteDataForStyle( PlayerNumber pn, const NoteData& original, NoteData& noteDataOut ) const
{