# HG changeset patch # User indvdum (gotoindvdum[at]gmail[dot]com) # Date 1342373802 -14400 # Node ID 9c68562715ed989d0da486da5b87eac7cb3b45a9 # Parent 505c25412b16f5a481c7a20011b2a39beda11fb7 Fix map update diff -r 505c25412b16 -r 9c68562715ed icfp-model/src/main/java/ru/bosony/model/game/Game.java --- a/icfp-model/src/main/java/ru/bosony/model/game/Game.java Sun Jul 15 21:20:04 2012 +0400 +++ b/icfp-model/src/main/java/ru/bosony/model/game/Game.java Sun Jul 15 21:36:42 2012 +0400 @@ -158,7 +158,7 @@ if (getContent(curCell) == Rock && getContent(downCell) == Empty) { getCell(curCoord, newCells).setContent(Empty); getCell(downCoord, newCells).setContent(Rock); - } else if (getContent(curCell) == Rock && getContent(downCell) == Empty + } else if (getContent(curCell) == Rock && getContent(downCell) == Rock && getContent(rightCell) == Empty && getContent(rightAndDownCell) == Empty) { getCell(curCoord, newCells).setContent(Empty); getCell(rightAndDownCoord, newCells).setContent(Rock);