Сделано

This commit is contained in:
Yunusov_Niyaz 2023-10-11 20:42:20 +04:00
parent aef61e0dc3
commit 8d300a2aec

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;