fix duplicate-timed time measure parsing
This commit is contained in:
@@ -131,13 +131,15 @@ namespace WacK.Data.Chart
|
|||||||
else
|
else
|
||||||
// TODO: handle denominator (note that gets the beat)
|
// TODO: handle denominator (note that gets the beat)
|
||||||
queuedBPM = int.Parse(chartNote.Item2.value.Split()[0]);
|
queuedBPM = int.Parse(chartNote.Item2.value.Split()[0]);
|
||||||
timeSigChgs.Add(
|
// FIXME: keep last instance encountered on the same time
|
||||||
|
timeSigChgs.TryAdd(
|
||||||
curTime,
|
curTime,
|
||||||
new NoteEvent<(int, int)> (
|
new NoteEvent<(int, int)> (
|
||||||
curTime, mb,
|
curTime, mb,
|
||||||
NoteEventType.TimeSignature,
|
NoteEventType.TimeSignature,
|
||||||
value: (nu, de)
|
value: (nu, de)
|
||||||
));
|
)
|
||||||
|
);
|
||||||
break;
|
break;
|
||||||
// Playable notes
|
// Playable notes
|
||||||
case MerType.Touch:
|
case MerType.Touch:
|
||||||
|
|||||||
Reference in New Issue
Block a user