mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-23 09:41:33 +00:00
fixed tab problem
This commit is contained in:
parent
246544806a
commit
36cb10572a
2 changed files with 57 additions and 64 deletions
|
@ -298,7 +298,6 @@ namespace MWInput
|
||||||
{
|
{
|
||||||
player.setAutoMove(false);
|
player.setAutoMove(false);
|
||||||
moveX -= speed;
|
moveX -= speed;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(poller.isDown(A_MoveRight))
|
if(poller.isDown(A_MoveRight))
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace MWWorld
|
||||||
bool mCollisionMode;
|
bool mCollisionMode;
|
||||||
|
|
||||||
bool mAutoMove;
|
bool mAutoMove;
|
||||||
bool misWalking; //Testing...
|
bool misWalking;//Testing...
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -122,8 +122,8 @@ namespace MWWorld
|
||||||
mAutoMove = setMe;
|
mAutoMove = setMe;
|
||||||
}
|
}
|
||||||
|
|
||||||
//NOTE: we don't have speed being calculated yet, so for now this function only requires a frame duration.
|
//NOTE: we don't have speed being calculated yet, so for now this function only requires a frame duration.
|
||||||
/// <param name="duration">float value representing time since last call</param>
|
/// <param name="duration">float value representing time since last call</param>
|
||||||
void executeAutoMove(float duration)
|
void executeAutoMove(float duration)
|
||||||
{
|
{
|
||||||
float X_Val = 0.0f;
|
float X_Val = 0.0f;
|
||||||
|
@ -131,10 +131,7 @@ namespace MWWorld
|
||||||
float Z_Val = 300.0f * duration * -1.0f;
|
float Z_Val = 300.0f * duration * -1.0f;
|
||||||
if (mAutoMove == true)
|
if (mAutoMove == true)
|
||||||
{
|
{
|
||||||
//if player is running
|
|
||||||
//Make player go at full speed
|
|
||||||
moveRel(X_Val, Y_Val, Z_Val);
|
moveRel(X_Val, Y_Val, Z_Val);
|
||||||
//else go forward at walk speed.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -147,9 +144,6 @@ namespace MWWorld
|
||||||
{
|
{
|
||||||
misWalking = setMe;
|
misWalking = setMe;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue