From 4b488b1a21f813ad060f60e9f75d4b9b75973013 Mon Sep 17 00:00:00 2001 From: the Date: Tue, 6 Dec 2022 12:22:47 +0400 Subject: [PATCH] Small fix --- DrawingShip.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DrawingShip.java b/DrawingShip.java index 059daf9..7624dd8 100644 --- a/DrawingShip.java +++ b/DrawingShip.java @@ -91,11 +91,11 @@ public class DrawingShip { return; } g.setColor(ship.getBodyColor() != null ? ship.getBodyColor() : Color.BLACK); + drawingDecks.draw(g, (int) _startPosX, (int) _startPosY, _shipWidth, _shipHeight); int xPoly[] = {(int)_startPosX, (int)_startPosX + 80, (int)_startPosX + 70, (int)_startPosX + 10}; int yPoly[] = {(int)_startPosY + 10, (int)_startPosY + 10, (int)_startPosY + 30, (int)_startPosY + 30}; g.fillPolygon(xPoly, yPoly, 4); g.fillRect((int)_startPosX + 30, (int)_startPosY, 20, 10); - drawingDecks.draw(g, (int) _startPosX, (int) _startPosY, _shipWidth, _shipHeight); } public void changeBorders(int width, int height)