From 523fbaee82ff859596f92c0362e52c7f0901d41a Mon Sep 17 00:00:00 2001 From: gg12 darfren Date: Thu, 12 Oct 2023 20:51:36 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 8 ++++++++ src/MonorailHard/DrawningMonorail.java | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .idea/.gitignore diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/src/MonorailHard/DrawningMonorail.java b/src/MonorailHard/DrawningMonorail.java index 21a42b9..03f4a90 100644 --- a/src/MonorailHard/DrawningMonorail.java +++ b/src/MonorailHard/DrawningMonorail.java @@ -50,7 +50,7 @@ public class DrawningMonorail { return; _startPosX = x; _startPosY = y; - if(x + _monorailHeight <= _pictureHeight || y + _monorailHeight <= _pictureHeight){ + if(x + _monorailWidth <= _pictureWidth|| y + _monorailHeight <= _pictureHeight){ _startPosX = 0; _startPosY = 0; }