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)

This commit is contained in:
AJ Kelly
2010-05-26 18:51:08 -05:00
parent 32ad5f4e43
commit 5fc8c0c2e9
+2 -2
View File
@@ -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 );
}
}