From: fred-boy Date: Thu, 26 Apr 2018 07:35:48 +0000 (+0700) Subject: Better creative inventory scrolling X-Git-Tag: alpha0.4~96 X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=8acb72a54d755c4df279244ca986d244e2700a08;p=cavedroid.git Better creative inventory scrolling --- diff --git a/core/src/ru/deadsoftware/cavecraft/game/GameInput.java b/core/src/ru/deadsoftware/cavecraft/game/GameInput.java index 08f6e36..9aa90f2 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/GameInput.java +++ b/core/src/ru/deadsoftware/cavecraft/game/GameInput.java @@ -125,7 +125,7 @@ public class GameInput { screenY=8 || ix<0 || iy<0 || iy>=5) item=-1; if (item >= 0 && item < Items.BLOCKS.size) { for (int i = 8; i > 0; i--) { @@ -160,9 +160,7 @@ public class GameInput { screenXgameProc.renderer.camera.viewportHeight/2-Assets.creativeInv.getRegionHeight()/2 && screenY0 && i0)