Fix compression score code bug reintroduction

This commit is contained in:
Diegoisawesome 2018-09-25 23:09:18 -05:00
parent 7522d2e16a
commit f143e184a8

View File

@ -785,7 +785,7 @@ int CalculateCompressionScore(std::vector<Event>& events, int index)
if (events[index].type == EventType::Note) if (events[index].type == EventType::Note)
{ {
// Bug reintroduction // Bug reintroduction
lastParam1 |= events[index].note + 0x40; lastParam1 = events[index].note + 0x40;
} }
if (events[index].time > 0) if (events[index].time > 0)
@ -842,7 +842,7 @@ int CalculateCompressionScore(std::vector<Event>& events, int index)
} }
else else
{ {
score++; score += 2;
} }
} }
@ -851,7 +851,7 @@ int CalculateCompressionScore(std::vector<Event>& events, int index)
if (events[i].type == EventType::Note) if (events[i].type == EventType::Note)
{ {
// Bug reintroduction // Bug reintroduction
lastParam1 |= events[i].note + 0x40; lastParam1 = events[i].note + 0x40;
} }
lastType = events[i].type; lastType = events[i].type;