PIbd-21 Makarov D.V. Lab 01 #1
@ -32,7 +32,7 @@ namespace Plane
|
|||||||
|
|
||||||
public void SetPosition(int x, int y)
|
public void SetPosition(int x, int y)
|
||||||
{
|
{
|
||||||
if (x + planeWidth < pictWidth && y +planeHeight < planeHeight)
|
if (x + planeWidth < pictWidth && y + planeHeight < pictHeight)
|
||||||
|
|||||||
{
|
{
|
||||||
startPosX = x;
|
startPosX = x;
|
||||||
startPosY = y;
|
startPosY = y;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user
Не учтены все условия, при которых объект может выйти за границы