toolstroke: fix bulldozer bug introduced by previous commit
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@646 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
52794b9c25
commit
59c5547e87
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ class Bulldozer extends ToolStroke
|
|||
for (int y = 0; y < b.height; y++) {
|
||||
for (int x = 0; x < b.width; x++) {
|
||||
|
||||
int tile = eff.getTile(x, y);
|
||||
int tile = eff.getTile(b.x+x, b.y+y);
|
||||
if (isDozeable(tile) && !isZoneCenter(tile)) {
|
||||
|
||||
dozeField(new TranslatedToolEffect(eff, b.x+x, b.y+y));
|
||||
|
@ -32,7 +32,7 @@ class Bulldozer extends ToolStroke
|
|||
for (int y = 0; y < b.height; y++) {
|
||||
for (int x = 0; x < b.width; x++) {
|
||||
|
||||
if (isZoneCenter(eff.getTile(x,y))) {
|
||||
if (isZoneCenter(eff.getTile(b.x+x,b.y+y))) {
|
||||
dozeZone(new TranslatedToolEffect(eff, b.x+x, b.y+y));
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue