From 0e2b431985c560a3924e33f173cfb5b860dc1b37 Mon Sep 17 00:00:00 2001 From: andreas Date: Tue, 4 Nov 2014 15:27:31 +0100 Subject: [PATCH] =?UTF-8?q?Synchronized=20f=C3=BCr=20Spieler=20Thread?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HeatUp/src/de/heatup/ui/KeyBindings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HeatUp/src/de/heatup/ui/KeyBindings.java b/HeatUp/src/de/heatup/ui/KeyBindings.java index 03a0db6..b71b30d 100644 --- a/HeatUp/src/de/heatup/ui/KeyBindings.java +++ b/HeatUp/src/de/heatup/ui/KeyBindings.java @@ -27,7 +27,7 @@ public class KeyBindings { GameInterface.getGamePanel().addKeyListener(kl); } - private void step(final char d, final int i) { + private synchronized void step(final char d, final int i) { final Player playerX = Query.getPlayer(); final int stepx = 25; final int stepy = 25;