@@ -364,7 +364,7 @@ struct TextureRegion
364364 {
365365 debug_assert (textureSize.x > 0 );
366366 debug_assert (textureSize.y > 0 );
367- float tcx = (1 .0f / textureSize.x );
367+ float tcx = (1 .0f / textureSize.x );
368368 float tcy = (1 .0f / textureSize.y );
369369 // compute texture region coordinates
370370 mRectangle = srcRectangle;
@@ -883,26 +883,22 @@ struct PedestrianCtlState
883883 }
884884public:
885885 // on foot control actions
886- struct
887- {
888- bool mTurnLeft = false ;
889- bool mTurnRight = false ;
890- bool mWalkForward = false ;
891- bool mWalkBackward = false ;
892- bool mRun = false ;
893- bool mShoot = false ;
894- bool mJump = false ;
895- bool mSpecial = false ;
896-
897- // overrides mTurnLeft/mTurnRight
898- bool mRotateToDesiredAngle = false ;
899- cxx::angle_t mDesiredRotationAngle ;
900- };
901- struct // in car control actions
902- {
903- float mAcceleration = 0 .0f ; // 0 means no acceleration, < 0 move reverse, > 0 full acceleration
904- float mSteerDirection = 0 .0f ; // 0 means no steer, < 0 steer left, > 0 steer right
905- bool mHandBrake = false ;
906- bool mHorn = false ;
907- };
908- };
886+ bool mTurnLeft = false ;
887+ bool mTurnRight = false ;
888+ bool mWalkForward = false ;
889+ bool mWalkBackward = false ;
890+ bool mRun = false ;
891+ bool mShoot = false ;
892+ bool mJump = false ;
893+ bool mSpecial = false ;
894+
895+ // overrides mTurnLeft/mTurnRight
896+ bool mRotateToDesiredAngle = false ;
897+ cxx::angle_t mDesiredRotationAngle ;
898+
899+ // in car control actions
900+ float mAcceleration = 0 .0f ; // 0 means no acceleration, < 0 move reverse, > 0 full acceleration
901+ float mSteerDirection = 0 .0f ; // 0 means no steer, < 0 steer left, > 0 steer right
902+ bool mHandBrake = false ;
903+ bool mHorn = false ;
904+ };
0 commit comments