ПИбд-23 Салин Олег Алексеевич Лабораторная работа №1 (усложненная) #1

Closed
Oleja123 wants to merge 2 commits from Lab1 into main
2 changed files with 9 additions and 1 deletions
Showing only changes of commit 523fbaee82 - Show all commits

8
.idea/.gitignore generated 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;
}