From 3589a3660f59e9a941a71097dceb482d9232d5a6 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Tue, 10 Dec 2019 11:12:56 -0500 Subject: [PATCH] remove spurious cast GitOrigin-RevId: 62d8d539d7fb643dd7e3b3fe89d7b141f47a1609 --- Jumpy.Shared/Player.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jumpy.Shared/Player.cs b/Jumpy.Shared/Player.cs index 789dc82..16480bb 100644 --- a/Jumpy.Shared/Player.cs +++ b/Jumpy.Shared/Player.cs @@ -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) {