summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bonusRoom.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bonusRoom.cpp b/src/bonusRoom.cpp
index 290dfdd..29d3312 100644
--- a/src/bonusRoom.cpp
+++ b/src/bonusRoom.cpp
@@ -683,7 +683,10 @@ void dSingAlong::executeState_Prize() {
chorus += 1;
if (chorus == 4) {
- state.setState(&StateID_Win);
+ if success != 4
+ state.setState(&StateID_Failure);
+ else
+ state.setState(&StateID_Win);
return;
}
@@ -772,10 +775,7 @@ void dSingAlong::executeState_Response() {
OSReport("Switching to some other mode: %d", isResponding);
MakeMarioEnterDemoMode();
this->success = this->success + 1;
- if (success == 4)
- state.setState(&StateID_Failure);
- else
- state.setState(&StateID_Prize);
+ state.setState(&StateID_Prize);
}
}
void dSingAlong::endState_Response() {}