From 5f09d23ea098fbbf08c21caab86773a821c5c9b5 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 22 Sep 2015 03:45:07 -0400 Subject: [PATCH] v0.3.2: fixed a bug where non-integer values for sx and sy caused some tile map issues --- .../shatteredpixeldungeon/scenes/PixelScene.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/scenes/PixelScene.java b/src/com/shatteredpixel/shatteredpixeldungeon/scenes/PixelScene.java index 7cf754abc..d053b9344 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/scenes/PixelScene.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/scenes/PixelScene.java @@ -265,8 +265,8 @@ public class PixelScene extends Scene { @Override protected void updateMatrix() { - float sx = scroll.x + shakeX; - float sy = scroll.y + shakeY; + float sx = Math.round(scroll.x + shakeX); + float sy = Math.round(scroll.y + shakeY); matrix[0] = +zoom * invW2; matrix[5] = -zoom * invH2;