From 5fc8c0c2e9208b3655b90039e4b11af3b6e732f7 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Wed, 26 May 2010 18:51:08 -0500 Subject: [PATCH] attempt to fix issue 144 by moving default fails to the end of the switch statements (http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=144) --- src/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Player.cpp b/src/Player.cpp index a8b75a7205..6c084ef98e 100644 --- a/src/Player.cpp +++ b/src/Player.cpp @@ -401,7 +401,6 @@ static bool NeedsTapJudging( const TapNote &tn ) { switch( tn.type ) { - DEFAULT_FAIL( tn.type ); case TapNote::tap: case TapNote::hold_head: case TapNote::mine: @@ -412,6 +411,7 @@ static bool NeedsTapJudging( const TapNote &tn ) case TapNote::autoKeysound: case TapNote::fake: return false; + DEFAULT_FAIL( tn.type ); } } @@ -419,7 +419,6 @@ static bool NeedsHoldJudging( const TapNote &tn ) { switch( tn.type ) { - DEFAULT_FAIL( tn.type ); case TapNote::hold_head: return tn.HoldResult.hns == HNS_None; case TapNote::tap: @@ -430,6 +429,7 @@ static bool NeedsHoldJudging( const TapNote &tn ) case TapNote::autoKeysound: case TapNote::fake: return false; + DEFAULT_FAIL( tn.type ); } }