remove spurious cast

GitOrigin-RevId: 62d8d539d7fb643dd7e3b3fe89d7b141f47a1609
This commit is contained in:
Colin McMillen 2019-12-10 11:12:56 -05:00
parent 7fe248aecc
commit 3589a3660f

View File

@ -47,11 +47,11 @@ namespace Jumpy {
if (gamePad[0].IsButtonDown(Buttons.DPadLeft) || leftStick.X < -0.5) { if (gamePad[0].IsButtonDown(Buttons.DPadLeft) || leftStick.X < -0.5) {
facing = Facing.Left; facing = Facing.Left;
pose = Pose.Walking; 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) { } else if (gamePad[0].IsButtonDown(Buttons.DPadRight) || leftStick.X > 0.5) {
facing = Facing.Right; facing = Facing.Right;
pose = Pose.Walking; 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) { } else if (gamePad[0].IsButtonDown(Buttons.DPadDown) || leftStick.Y < -0.5) {
pose = Pose.Crouching; pose = Pose.Crouching;
} else if (gamePad[0].IsButtonDown(Buttons.DPadUp) || leftStick.Y > 0.5) { } else if (gamePad[0].IsButtonDown(Buttons.DPadUp) || leftStick.Y > 0.5) {