Исправил ошибку

This commit is contained in:
gg12 darfren 2023-10-12 20:51:36 +04:00
parent 8b768049a0
commit 523fbaee82
2 changed files with 9 additions and 1 deletions

8
.idea/.gitignore vendored Normal file
View File

@ -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

View File

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