diff options
author | Diegoisawesome <diego@domoreaweso.me> | 2018-09-25 23:09:18 -0500 |
---|---|---|
committer | Diegoisawesome <diego@domoreaweso.me> | 2018-09-25 23:09:42 -0500 |
commit | f143e184a87d95338b95a34bfd64a3aff7258dee (patch) | |
tree | 2ff340f070f7d61dcd53c127c510aa4817fbcbd2 /tools | |
parent | 7522d2e16a22de58e60e829c8cae93b35dd5a431 (diff) |
Fix compression score code bug reintroduction
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mid2agb/midi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/mid2agb/midi.cpp b/tools/mid2agb/midi.cpp index b49970282..e506fcb09 100644 --- a/tools/mid2agb/midi.cpp +++ b/tools/mid2agb/midi.cpp @@ -785,7 +785,7 @@ int CalculateCompressionScore(std::vector<Event>& events, int index) if (events[index].type == EventType::Note) { // Bug reintroduction - lastParam1 |= events[index].note + 0x40; + lastParam1 = events[index].note + 0x40; } if (events[index].time > 0) @@ -842,7 +842,7 @@ int CalculateCompressionScore(std::vector<Event>& events, int index) } else { - score++; + score += 2; } } @@ -851,7 +851,7 @@ int CalculateCompressionScore(std::vector<Event>& events, int index) if (events[i].type == EventType::Note) { // Bug reintroduction - lastParam1 |= events[i].note + 0x40; + lastParam1 = events[i].note + 0x40; } lastType = events[i].type; |