From daa6a572d001a744aa283ab7fb63ffea2e868e1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Fri, 16 May 2014 11:48:38 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=AA=E2=99=AB=20=20Wer=20will=20lustige=20?= =?UTF-8?q?Schweifklammern=20sehn,=20der=20muss=20ins=20inf3=20praktikum?= =?UTF-8?q?=20geh'n=20=E2=99=AB=20=E2=99=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Backend.cs | 5 +++-- src/Player.cs | 8 +++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Backend.cs b/src/Backend.cs index 10613a2..579d723 100644 --- a/src/Backend.cs +++ b/src/Backend.cs @@ -176,8 +176,9 @@ namespace WorldOfPeacecraft public void MoveStep () { - if (Pathwalker.HasMoreSteps()) - SenderBuffer.AddLine("ask:" + Pathwalker.NextStep()); + if (Pathwalker.HasMoreSteps ()) { + SenderBuffer.AddLine ("ask:" + Pathwalker.NextStep ()); + } } public void OnPlayerMoved (int x, int y) diff --git a/src/Player.cs b/src/Player.cs index 23e0ddb..c9e21c8 100644 --- a/src/Player.cs +++ b/src/Player.cs @@ -30,11 +30,13 @@ namespace WorldOfPeacecraft public override void SetPos (int x, int y) { bool positionChanged = false; - if (x != GetX() || y != GetY ()) + if (x != GetX () || y != GetY ()) { positionChanged = true; + } base.SetPos (x, y); - if (positionChanged && LocationChanged != null) - LocationChanged(x, y); + if (positionChanged && LocationChanged != null) { + LocationChanged (x, y); + } } public override string ToString()