Fix map update
authorindvdum (gotoindvdum[at]gmail[dot]com)
Sun, 15 Jul 2012 21:36:42 +0400
changeset 289c68562715ed
parent 27 505c25412b16
child 29 66aa96e8fd92
Fix map update
icfp-model/src/main/java/ru/bosony/model/game/Game.java
     1.1 --- a/icfp-model/src/main/java/ru/bosony/model/game/Game.java	Sun Jul 15 21:20:04 2012 +0400
     1.2 +++ b/icfp-model/src/main/java/ru/bosony/model/game/Game.java	Sun Jul 15 21:36:42 2012 +0400
     1.3 @@ -158,7 +158,7 @@
     1.4  				if (getContent(curCell) == Rock && getContent(downCell) == Empty) {
     1.5  					getCell(curCoord, newCells).setContent(Empty);
     1.6  					getCell(downCoord, newCells).setContent(Rock);
     1.7 -				} else if (getContent(curCell) == Rock && getContent(downCell) == Empty
     1.8 +				} else if (getContent(curCell) == Rock && getContent(downCell) == Rock
     1.9  						&& getContent(rightCell) == Empty && getContent(rightAndDownCell) == Empty) {
    1.10  					getCell(curCoord, newCells).setContent(Empty);
    1.11  					getCell(rightAndDownCoord, newCells).setContent(Rock);