From 59c5547e87af37661bf69172dc9497f89f0e91da Mon Sep 17 00:00:00 2001 From: "jason@long.name" Date: Thu, 16 May 2013 23:45:59 +0000 Subject: [PATCH] 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 --- src/micropolisj/engine/Bulldozer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/micropolisj/engine/Bulldozer.java b/src/micropolisj/engine/Bulldozer.java index 0648905..26e773a 100644 --- a/src/micropolisj/engine/Bulldozer.java +++ b/src/micropolisj/engine/Bulldozer.java @@ -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)); } }