Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
cryham authored and darksylinc committed Sep 3, 2023
1 parent 8c89911 commit 888e3e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Samples/2.0/Common/include/CameraController.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Demo
{
bool mUseSceneNode;

bool mSpeedMofifier;
bool mSpeedModifier;
bool mWASD[4];
bool mSlideUpDown[2];
float mCameraYaw;
Expand Down
8 changes: 4 additions & 4 deletions Samples/2.0/Common/src/CameraController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Demo
{
CameraController::CameraController( GraphicsSystem *graphicsSystem, bool useSceneNode ) :
mUseSceneNode( useSceneNode ),
mSpeedMofifier( false ),
mSpeedModifier( false ),
mCameraYaw( 0 ),
mCameraPitch( 0 ),
mCameraBaseSpeed( 10 ),
Expand Down Expand Up @@ -58,7 +58,7 @@ namespace Demo
(Ogre::Real)camMovementZ );
camMovementDir.normalise();
camMovementDir *=
timeSinceLast * mCameraBaseSpeed * ( 1 + mSpeedMofifier * mCameraSpeedBoost );
timeSinceLast * mCameraBaseSpeed * ( 1 + mSpeedModifier * mCameraSpeedBoost );

if( mUseSceneNode )
{
Expand All @@ -75,7 +75,7 @@ namespace Demo
bool CameraController::keyPressed( const SDL_KeyboardEvent &arg )
{
if( arg.keysym.scancode == SDL_SCANCODE_LSHIFT )
mSpeedMofifier = true;
mSpeedModifier = true;

if( arg.keysym.scancode == SDL_SCANCODE_W )
mWASD[0] = true;
Expand All @@ -98,7 +98,7 @@ namespace Demo
bool CameraController::keyReleased( const SDL_KeyboardEvent &arg )
{
if( arg.keysym.scancode == SDL_SCANCODE_LSHIFT )
mSpeedMofifier = false;
mSpeedModifier = false;

if( arg.keysym.scancode == SDL_SCANCODE_W )
mWASD[0] = false;
Expand Down

0 comments on commit 888e3e0

Please sign in to comment.