Fix dan charts for 1, 2 and 4+ songs (Dan charts can be played with any song count)
This commit is contained in:
parent
d706426579
commit
ae1183e01a
@ -336,7 +336,7 @@ namespace TJAPlayer3
|
||||
/// <summary>
|
||||
/// 曲ごとの条件を格納する
|
||||
/// </summary>
|
||||
public Dan_C[] SongExam = new Dan_C[3];
|
||||
// public Dan_C[] SongExam = new Dan_C[3];
|
||||
|
||||
/// <summary>
|
||||
/// 条件の達成見込みがなくなったら、真になる。
|
||||
|
@ -17,7 +17,7 @@ namespace TJAPlayer3
|
||||
public static readonly int cMaxExam = 7;
|
||||
|
||||
// Max number of songs for a Dan chart
|
||||
public static readonly int cExamMaxSongs = 3;
|
||||
public static readonly int cExamMaxSongs = 9;
|
||||
}
|
||||
|
||||
|
||||
@ -565,7 +565,7 @@ namespace TJAPlayer3
|
||||
|
||||
if (ExamChange[i] == true)
|
||||
{
|
||||
for (int j = 1; j < CExamInfo.cExamMaxSongs; j++)
|
||||
for (int j = 1; j < TJAPlayer3.stage選曲.r確定された曲.DanSongs.Count; j++)
|
||||
{
|
||||
|
||||
if (!(TJAPlayer3.stage選曲.r確定された曲.DanSongs[j - 1].Dan_C[i] != null && TJAPlayer3.stage選曲.r確定された曲.DanSongs[NowShowingNumber].Dan_C[i] != null))
|
||||
@ -1077,7 +1077,7 @@ namespace TJAPlayer3
|
||||
|
||||
if (ExamChange[i] == true)
|
||||
{
|
||||
for (int j = 1; j < CExamInfo.cExamMaxSongs; j++)
|
||||
for (int j = 1; j < TJAPlayer3.stage選曲.r確定された曲.DanSongs.Count; j++)
|
||||
{
|
||||
if (!(TJAPlayer3.stage選曲.r確定された曲.DanSongs[j - 1].Dan_C[i] != null))
|
||||
continue;
|
||||
|
@ -505,7 +505,7 @@ namespace TJAPlayer3
|
||||
|
||||
#region [Partial scores]
|
||||
|
||||
for (int i = 0; i < CExamInfo.cExamMaxSongs; i++)
|
||||
for (int i = 0; i < TJAPlayer3.stage選曲.r確定された曲.DanSongs.Count; i++)
|
||||
{
|
||||
if (TJAPlayer3.stage選曲.r確定された曲.DanSongs[i] != null)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user