From 9c43a295f55763f4d06097f4560320c10ae50b7d Mon Sep 17 00:00:00 2001 From: AnnaLioness Date: Tue, 24 Oct 2023 01:45:26 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B0=D0=B2=D0=B5=D1=80=D0=BD=D0=BE=20?= =?UTF-8?q?=D1=84=D0=B8=D0=BD=D0=B0=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrawingContainerShip.java | 2 +- ShipGenericDop.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/DrawingContainerShip.java b/DrawingContainerShip.java index 682669e..fc8c2a2 100644 --- a/DrawingContainerShip.java +++ b/DrawingContainerShip.java @@ -35,7 +35,7 @@ additionalColor, boolean crane, boolean containers,int deck, int deckType, int w return; } iDecksDrawing = decks; - + iDecksDrawing.setNumDecks(ship.Deck); } @Override diff --git a/ShipGenericDop.java b/ShipGenericDop.java index 0e9fc69..4f847fb 100644 --- a/ShipGenericDop.java +++ b/ShipGenericDop.java @@ -46,8 +46,6 @@ public class ShipGenericDop { } int i = rand.nextInt(countShips); int j = rand.nextInt(countDecks); - DrawingShip drawingShip; - DrawingContainerShip drawingContainerShip; if(Ships[i] instanceof EntityContainerShip){ return new DrawingContainerShip((EntityContainerShip)Ships[i], (IDecksDrawing)Decks[j], _pictureWidth, _pictureHeight); }