Skip to content

Commit

Permalink
Merge pull request #165 from WilliamQiufeng/fix-perfect-replay-outofr…
Browse files Browse the repository at this point in the history
…ange

Use bit manipulation instead of arithmetic subtraction for generating perfect replay releases
  • Loading branch information
Swan committed Jun 24, 2024
2 parents 5edb8cb + 5c4d0e4 commit 3da9e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Quaver.API/Replays/Replay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public static Replay GeneratePerfectReplayKeys(Replay replay, Qua map)
state |= KeyLaneToPressState(frame.HitObject.Lane);
break;
case ReplayAutoplayFrameType.Release:
state -= KeyLaneToPressState(frame.HitObject.Lane);
state &= ~KeyLaneToPressState(frame.HitObject.Lane);
break;
default:
throw new ArgumentOutOfRangeException();
Expand Down

0 comments on commit 3da9e6d

Please sign in to comment.