From b704797d477a182e01a72b4b94eeaf6e6980877a Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Sun, 12 Jul 2020 13:27:17 -0500 Subject: [PATCH] Forgot to change variable name. --- States/TutorialState.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/States/TutorialState.cs b/States/TutorialState.cs index 43de221..5c4f806 100644 --- a/States/TutorialState.cs +++ b/States/TutorialState.cs @@ -234,14 +234,14 @@ namespace WebsiteSim.States serverTargetPos = cursorWidthScale * Mouse.X; } - if (serverTargetPos < server.CenterX - 0.02f) + if (serverTargetPos < serverEntity.CenterX - 0.02f) { - server.CenterX -= ((float)timeStep * server.Speed); - if (server.CenterX < serverTargetPos - 0.02f) server.CenterX = serverTargetPos - 0.02f; - } else if (serverTargetPos > server.CenterX + 0.02f) + serverEntity.CenterX -= ((float)timeStep * serverEntity.Speed); + if (serverEntity.CenterX < serverTargetPos - 0.02f) serverEntity.CenterX = serverTargetPos - 0.02f; + } else if (serverTargetPos > serverEntity.CenterX + 0.02f) { - server.CenterX += ((float)timeStep * server.Speed); - if (server.CenterX > serverTargetPos + 0.02f) server.CenterX = serverTargetPos + 0.02f; + serverEntity.CenterX += ((float)timeStep * serverEntity.Speed); + if (serverEntity.CenterX > serverTargetPos + 0.02f) serverEntity.CenterX = serverTargetPos + 0.02f; } #endregion #region WarningCleanup