]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
radiant: some comments from NRC
authorThomas Debesse <dev@illwieckz.net>
Tue, 21 Jun 2022 21:55:41 +0000 (23:55 +0200)
committerThomas Debesse <dev@illwieckz.net>
Tue, 21 Jun 2022 21:55:41 +0000 (23:55 +0200)
radiant/camwindow.cpp

index 945eac950f3597eb7ebf891c0d6bba52d06ab81e..0257fa55205390dfc2de8b63b41b384362dd2a93 100644 (file)
@@ -659,8 +659,8 @@ void Camera_motionDelta( int x, int y, unsigned int state, void* data ){
                cam->m_strafe_forward = cam->m_strafe;
                break;
        case 4:
-               cam->m_strafe_forward_invert = true;
-       default:
+               cam->m_strafe_forward_invert = true; // fall through
+       default: /* 3 & 4 */
                cam->m_strafe = ( state & GDK_CONTROL_MASK ) != 0;
                if ( cam->m_strafe ) {
                        cam->m_strafe_forward = ( state & GDK_SHIFT_MASK ) != 0;