TileImages: use new tile-drawing method in drawing-area
This commit is contained in:
parent
7b85b7bbe9
commit
cdcb63124a
1 changed files with 3 additions and 3 deletions
|
@ -198,10 +198,10 @@ public class MicropolisDrawingArea extends JComponent
|
|||
}
|
||||
|
||||
TileImages.ImageInfo imgInfo = tileImages.getTileImageInfo(cell, m.getAnimationCycle());
|
||||
gr.drawImage(imgInfo.getImage(),
|
||||
imgInfo.drawTo(gr,
|
||||
x*TILE_WIDTH + (shakeStep != 0 ? getShakeModifier(y) : 0),
|
||||
y*TILE_HEIGHT,
|
||||
null);
|
||||
y*TILE_HEIGHT
|
||||
);
|
||||
|
||||
if (imgInfo.isAnimated()) {
|
||||
animatedTiles.add(new CityLocation(x, y));
|
||||
|
|
Reference in a new issue