From 0d566c565bbb24a90023219916dcc7e4da24754e Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Thu, 2 May 2013 23:21:27 -0500 Subject: Minor fixes --- src/bonusRoom.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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() {} -- cgit v1.2.3