From 306cd62912ed5c71800e2e0d3b75e434ac59980d Mon Sep 17 00:00:00 2001 From: Armin Benz Date: Fri, 5 May 2017 17:40:03 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix:=20EndlessGame=20st=C3=BCrzt=20nicht=20m?= =?UTF-8?q?ehr=20ab;=20Oben=20hinaus=20springen=20nicht=20mehr=20m=C3=B6gl?= =?UTF-8?q?ich?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/de/samdev/colorrunner/game/world/CRGameWorld.java | 2 +- .../colorrunner/game/world/map/provider/EndlessMapProvider.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/de/samdev/colorrunner/game/world/CRGameWorld.java b/core/src/de/samdev/colorrunner/game/world/CRGameWorld.java index 4a04bc8..32621e0 100644 --- a/core/src/de/samdev/colorrunner/game/world/CRGameWorld.java +++ b/core/src/de/samdev/colorrunner/game/world/CRGameWorld.java @@ -81,7 +81,7 @@ public class CRGameWorld implements GameInputListener { { scoreMeter++; } - if(player.getPosition().y < - FloorTileEntity.FLOORTILE_HEIGHT|| player.getPosition().y > 17 * FloorTileEntity.FLOORTILE_HEIGHT ) + if(player.getPosition().y < - FloorTileEntity.FLOORTILE_HEIGHT|| player.getPosition().y > 16 * FloorTileEntity.FLOORTILE_HEIGHT ) { checkHighscore(); setTries(); diff --git a/core/src/de/samdev/colorrunner/game/world/map/provider/EndlessMapProvider.java b/core/src/de/samdev/colorrunner/game/world/map/provider/EndlessMapProvider.java index 8b20077..e7e8a15 100644 --- a/core/src/de/samdev/colorrunner/game/world/map/provider/EndlessMapProvider.java +++ b/core/src/de/samdev/colorrunner/game/world/map/provider/EndlessMapProvider.java @@ -55,7 +55,7 @@ public class EndlessMapProvider extends MapProvider { return TriggerType.RUNTOP; else if( sections.get(i).crTiledMap.interaktionen[x - start][y] == CRTiledMap.GID_INTER_RIGHT) return TriggerType.FLY; - else if(sections.get(i).crTiledMap.interaktionen[x][y] == 0) + else if(sections.get(i).crTiledMap.interaktionen[x - start][y] == 0) return TriggerType.NOTHING; else { Gdx.app.error("MapProvider", "Unknown trigger: " + sections.get(i).crTiledMap.interaktionen[x][y]);