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; }