Skip to content

Commit

Permalink
Improve pour minigame controls
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Nov 5, 2023
1 parent 8c1a884 commit 9b4472a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/minigame_pour.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,16 @@ void PourMinigame::UpdateSwitches(volatile int frame, Sound *sound)
targetPumpRate = 0;
}
}
else
{
if (selectedSwitch != -1)
{
sound->PlaySFX(SFX_CLICK);
}
selectedSwitch = -1;
targetDrainRate = 0;
targetPumpRate = 0;
}

if (frame % 10 == 0)
{
Expand Down

0 comments on commit 9b4472a

Please sign in to comment.