diff --git a/Tank/src/DrawingArmoVehicle.java b/Tank/src/DrawingArmoVehicle.java index dc9a434..b445fe1 100644 --- a/Tank/src/DrawingArmoVehicle.java +++ b/Tank/src/DrawingArmoVehicle.java @@ -117,10 +117,11 @@ public class DrawingArmoVehicle { return; } + // body g.setColor(ArmoVehicle.BodyColor); int[] xPoints = {_startPosX + 5, _startPosX + 140, _startPosX + 130, _startPosX + 12}; int[] yPoints = {_startPosY + 30, _startPosY + 30, _startPosY + 42, _startPosY + 42}; - int nPoints = 4; + int nPoints = xPoints.length; g.drawPolygon(xPoints, yPoints, nPoints); g.fillPolygon(xPoints, yPoints, nPoints);