PIbd-23. Yunusov N.N. Lab work 01 #1

Closed
Yunusov_Niyaz wants to merge 3 commits from Lab1 into main
Showing only changes of commit 8d300a2aec - Show all commits

View File

@ -53,6 +53,10 @@ namespace Trolleybus
}
public void SetPosition(int x, int y)
{
if (EntityTrolleybus == null)
{
return;
}
if (x < 0 || y < 0 || x + _trolleybusWidth >= _pictureWidth || y + _trolleybusHeight >= _pictureHeight)
x = y = 10;
_startPosX = x;