From 46c7fd0dfcdfbb353ffb291e5a1677af73613168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D1=8F=D1=87=D0=B5=D1=81=D0=BB=D0=B0=D0=B2=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Tue, 17 Oct 2023 20:56:36 +0400 Subject: [PATCH] fix --- src/DrawningDoor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DrawningDoor.java b/src/DrawningDoor.java index e7331d2..51a82eb 100644 --- a/src/DrawningDoor.java +++ b/src/DrawningDoor.java @@ -42,15 +42,15 @@ public class DrawningDoor { g2d.fillRect(CurX + 15, CurY + 40, 10, 20); g2d.fillRect(CurX + 30, CurY + 40, 10, 20); - if (DoorNumberType == DoorNumberType.Three || DoorNumberType == DoorNumberType.Four || DoorNumberType == DoorNumberType.Five) { + if (DoorNumberType() == DoorNumberType.Three || DoorNumberType() == DoorNumberType.Four || DoorNumberType() == DoorNumberType.Five) { g2d.fillRect(CurX + 45, CurY + 40, 10, 20); } - if (DoorNumberType == DoorNumberType.Four || DoorNumberType == DoorNumberType.Five) { + if (DoorNumberType() == DoorNumberType.Four || DoorNumberType() == DoorNumberType.Five) { g2d.fillRect(CurX + 60, CurY + 40, 10, 20); } - if (DoorNumberType == DoorNumberType.Five) { + if (DoorNumberType() == DoorNumberType.Five) { g2d.fillRect(CurX + 75, CurY + 40, 10, 20); } }