summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2013-05-02 23:21:27 -0500
committerColin Noga <Tempus@chronometry.ca>2013-05-02 23:21:27 -0500
commit0d566c565bbb24a90023219916dcc7e4da24754e (patch)
tree9228bcf1e18c04379bac2141a853a784e2b6032f
parentc42b926668135c5a4222652e1c53e9eaec290a04 (diff)
downloadkamek-0d566c565bbb24a90023219916dcc7e4da24754e.tar.gz
kamek-0d566c565bbb24a90023219916dcc7e4da24754e.zip
Minor fixes
Diffstat (limited to '')
-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() {}