From 50fb57dc4b313dbb3facb3bf147bee1b66e65d78 Mon Sep 17 00:00:00 2001 From: toksikk Date: Tue, 4 Nov 2014 11:30:24 +0100 Subject: [PATCH] =?UTF-8?q?Bugfix=20in=20Config=20f=C3=BCr=20Map=20Generie?= =?UTF-8?q?rung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HeatUp/src/de/heatup/cfg/Config.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HeatUp/src/de/heatup/cfg/Config.java b/HeatUp/src/de/heatup/cfg/Config.java index 79fd2ab..7b8fd5f 100644 --- a/HeatUp/src/de/heatup/cfg/Config.java +++ b/HeatUp/src/de/heatup/cfg/Config.java @@ -16,13 +16,13 @@ public class Config { public static int singleTilePixels = gamePanelWidth/mapMaxTilesWidth; public static void setGamePanelWidth(int width) { // Wir wollen hier keine Reste! - while (width % mapMaxTilesHeight != 0) { + while (width % mapMaxTilesWidth != 0) { width--; } gamePanelWidth = width; updateSingleTilePixels(); } private static void updateSingleTilePixels() { - singleTilePixels = gamePanelWidth/mapMaxTilesHeight; + singleTilePixels = gamePanelWidth/mapMaxTilesWidth; } }