diff --git a/libs/container/hashfunc.h b/libs/container/hashfunc.h index 6d216697..83d3e664 100644 --- a/libs/container/hashfunc.h +++ b/libs/container/hashfunc.h @@ -203,17 +203,17 @@ inline ub4 hash( c += length; switch ( len ) /* all the case statements fall through */ { - case 11: c += ( ( ub4 ) UB1Traits::as_ub1( k[10] ) << 24 ); - case 10: c += ( ( ub4 ) UB1Traits::as_ub1( k[9] ) << 16 ); - case 9: c += ( ( ub4 ) UB1Traits::as_ub1( k[8] ) << 8 ); + case 11: c += ( ( ub4 ) UB1Traits::as_ub1( k[10] ) << 24 ); // fall through + case 10: c += ( ( ub4 ) UB1Traits::as_ub1( k[9] ) << 16 ); // fall through + case 9: c += ( ( ub4 ) UB1Traits::as_ub1( k[8] ) << 8 ); // fall through /* the first byte of c is reserved for the length */ - case 8: b += ( ( ub4 ) UB1Traits::as_ub1( k[7] ) << 24 ); - case 7: b += ( ( ub4 ) UB1Traits::as_ub1( k[6] ) << 16 ); - case 6: b += ( ( ub4 ) UB1Traits::as_ub1( k[5] ) << 8 ); - case 5: b += UB1Traits::as_ub1( k[4] ); - case 4: a += ( ( ub4 ) UB1Traits::as_ub1( k[3] ) << 24 ); - case 3: a += ( ( ub4 ) UB1Traits::as_ub1( k[2] ) << 16 ); - case 2: a += ( ( ub4 ) UB1Traits::as_ub1( k[1] ) << 8 ); + case 8: b += ( ( ub4 ) UB1Traits::as_ub1( k[7] ) << 24 ); // fall through + case 7: b += ( ( ub4 ) UB1Traits::as_ub1( k[6] ) << 16 ); // fall through + case 6: b += ( ( ub4 ) UB1Traits::as_ub1( k[5] ) << 8 ); // fall through + case 5: b += UB1Traits::as_ub1( k[4] ); // fall through + case 4: a += ( ( ub4 ) UB1Traits::as_ub1( k[3] ) << 24 ); // fall through + case 3: a += ( ( ub4 ) UB1Traits::as_ub1( k[2] ) << 16 ); // fall through + case 2: a += ( ( ub4 ) UB1Traits::as_ub1( k[1] ) << 8 ); // fall through case 1: a += UB1Traits::as_ub1( k[0] ); /* case 0: nothing left to add */ } diff --git a/plugins/mapq3/plugin.cpp b/plugins/mapq3/plugin.cpp index e585fbdf..328e6d29 100644 --- a/plugins/mapq3/plugin.cpp +++ b/plugins/mapq3/plugin.cpp @@ -278,6 +278,7 @@ scene::Node& parsePrimitive( Tokeniser& tokeniser ) const { case eBrushTypeQuake3: case eBrushTypeQuake3Valve220: tokeniser.ungetToken(); // ( + // fall through case eBrushTypeQuake3BP: return GlobalBrushCreator().createBrush(); default: @@ -355,6 +356,7 @@ scene::Node& parsePrimitive( Tokeniser& tokeniser ) const { case eBrushTypeQuake: case eBrushTypeValve220: tokeniser.ungetToken(); // ( + // fall through case eBrushTypeQuake3BP: return GlobalBrushCreator().createBrush(); default: @@ -473,6 +475,7 @@ scene::Node& parsePrimitive( Tokeniser& tokeniser ) const { case eBrushTypeQuake2: case eBrushTypeQuake3Valve220: tokeniser.ungetToken(); // ( + // fall through case eBrushTypeQuake3BP: return GlobalBrushCreator().createBrush(); default: diff --git a/radiant/camwindow.cpp b/radiant/camwindow.cpp index 81fe5c85..60a4d2da 100644 --- a/radiant/camwindow.cpp +++ b/radiant/camwindow.cpp @@ -729,7 +729,7 @@ void Camera_motionDelta( int x, int y, unsigned int state, void* data ){ cam->m_strafe_forward = true; break; case 4: - cam->m_strafe_forward_invert = true; + cam->m_strafe_forward_invert = true; // fall through default: /* 3 & 4 */ cam->m_strafe = ( state & GDK_CONTROL_MASK ) || ( state & GDK_BUTTON3_MASK ) || ( state & GDK_SHIFT_MASK ); cam->m_strafe_forward = ( state & GDK_SHIFT_MASK ) != 0; diff --git a/radiant/selection.cpp b/radiant/selection.cpp index fea6ad00..b35beda1 100644 --- a/radiant/selection.cpp +++ b/radiant/selection.cpp @@ -4245,7 +4245,7 @@ public: viewdir_make_cut_worthy( plane3_for_points( m_points[0].m_point, m_points[1].m_point, m_points[2].m_point ) ); } m_points[2].m_point = m_points[0].m_point + m_viewdir * vector3_length( m_points[0].m_point - m_points[1].m_point ); - } + } // fall through case 3: Clipper_setPlanePoints( ClipperPoints( m_points[0].m_point, m_points[1].m_point, m_points[2].m_point, npoints ) ); break;