mirror of https://github.com/ppy/osu
Fix mouseX legacy replay parsing for high key counts in mania
This commit is contained in:
parent
2233602184
commit
9620c58751
|
@ -280,8 +280,11 @@ private void readLegacyReplay(Replay replay, StreamReader reader)
|
|||
continue;
|
||||
}
|
||||
|
||||
// In mania, mouseX encodes the pressed keys in the lower 20 bits
|
||||
int mouseXParseLimit = currentRuleset.RulesetInfo.OnlineID == 3 ? (1 << 20) - 1 : Parsing.MAX_COORDINATE_VALUE;
|
||||
|
||||
float diff = Parsing.ParseFloat(split[0]);
|
||||
float mouseX = Parsing.ParseFloat(split[1], Parsing.MAX_COORDINATE_VALUE);
|
||||
float mouseX = Parsing.ParseFloat(split[1], mouseXParseLimit);
|
||||
float mouseY = Parsing.ParseFloat(split[2], Parsing.MAX_COORDINATE_VALUE);
|
||||
|
||||
lastTime += diff;
|
||||
|
|
Loading…
Reference in New Issue