Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
LumpBloom7 committed Jul 25, 2023
1 parent 316ab0c commit cadf0ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,15 @@ public override bool OnPressed(KeyBindingPressEvent<RushAction> e)

public override void OnReleased(KeyBindingReleaseEvent<RushAction> e)
{
// TODO: HACK FIX FOR HOTFIX, NEEDS FURTHER INVESTIGATION
if (!IsInUse)
return;

if (AllJudged)
return;

// Note sheet not held yet (i.e. not our time yet) or already broken / finished.
if (Judged || !Head.IsHit)
if (Judged)
return;

if (!LaneMatchesAction(e.Action))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Copyright (c) Shane Woolcock. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using System;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.Scoring;

namespace osu.Game.Rulesets.Rush.Objects.Drawables
Expand Down

0 comments on commit cadf0ae

Please sign in to comment.