remove spurious cast
GitOrigin-RevId: 62d8d539d7fb643dd7e3b3fe89d7b141f47a1609
This commit is contained in:
parent
7fe248aecc
commit
3589a3660f
@ -47,11 +47,11 @@ namespace Jumpy {
|
||||
if (gamePad[0].IsButtonDown(Buttons.DPadLeft) || leftStick.X < -0.5) {
|
||||
facing = Facing.Left;
|
||||
pose = Pose.Walking;
|
||||
position.X -= (int) (moveSpeed * (float) time.ElapsedGameTime.TotalSeconds);
|
||||
position.X -= (int) (moveSpeed * time.ElapsedGameTime.TotalSeconds);
|
||||
} else if (gamePad[0].IsButtonDown(Buttons.DPadRight) || leftStick.X > 0.5) {
|
||||
facing = Facing.Right;
|
||||
pose = Pose.Walking;
|
||||
position.X += (int) (moveSpeed * (float) time.ElapsedGameTime.TotalSeconds);
|
||||
position.X += (int) (moveSpeed * time.ElapsedGameTime.TotalSeconds);
|
||||
} else if (gamePad[0].IsButtonDown(Buttons.DPadDown) || leftStick.Y < -0.5) {
|
||||
pose = Pose.Crouching;
|
||||
} else if (gamePad[0].IsButtonDown(Buttons.DPadUp) || leftStick.Y > 0.5) {
|
||||
|
Loading…
Reference in New Issue
Block a user