Fix mania frame conversion not working at all

This commit is contained in:
smoogipoo 2018-03-01 02:09:35 +09:00
parent e869f7d05b
commit c783a19e41

View File

@ -41,12 +41,15 @@ namespace osu.Game.Rulesets.Mania.Replays
int counter = 0; int counter = 0;
while (activeColumns > 0) while (activeColumns > 0)
{ {
Actions.Add((activeColumns & 1) > 0 ? specialAction : normalAction); var isSpecial = stage.IsSpecialColumn(counter);
if (stage.IsSpecialColumn(counter)) if ((activeColumns & 1) > 0)
normalAction++; Actions.Add(isSpecial ? specialAction : normalAction);
else
if (isSpecial)
specialAction++; specialAction++;
else
normalAction++;
counter++; counter++;
activeColumns >>= 1; activeColumns >>= 1;