From 0667fc1a0a49b05d42ea0b6b3d274001f1328de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=91=D0=B5=D0=BB?= =?UTF-8?q?=D1=8F=D0=BD=D0=B8=D0=BD?= Date: Mon, 13 Nov 2023 00:21:09 +0400 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=BE=D1=82=D0=BE=D0=B2=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82=D0=BE=D1=80=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=204?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tank/src/DrawingArmoVehicle.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);