X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2Fgame%2FGameWorld.java;h=c32bbd9358f297088f28c43572154652520b919c;hb=c21d1b3fed19f8de8a0fbc558f96541b1f2c8a05;hp=7c117b4bbb8ec6957256aadb80739fc6e7ac2e22;hpb=769c26b45cc2bc91439f5f4f92bb7ac75fadfa91;p=cavedroid.git diff --git a/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java b/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java index 7c117b4..c32bbd9 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java +++ b/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java @@ -67,8 +67,8 @@ public class GameWorld { } public void placeToBackground(int x, int y, int value) { - if ((getBackMap(x,y) == 0 || value == 0) && - !Items.BLOCKS.getValueAt(value).foreground) setBackMap(x,y,value); + if (value==0 || (getBackMap(x,y) == 0 && !Items.BLOCKS.getValueAt(value).foreground)) + setBackMap(x,y,value); } }