From 81bbd8fb14a9f7db31c64def20e72d3f14574d99 Mon Sep 17 00:00:00 2001 From: nikos77781 Date: Tue, 27 Feb 2024 09:22:15 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D0=B0=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=20=E2=84=961?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Excavator/Excavator/DrawningExcavator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Excavator/Excavator/DrawningExcavator.cs b/Excavator/Excavator/DrawningExcavator.cs index 1057260..9d2f6ef 100644 --- a/Excavator/Excavator/DrawningExcavator.cs +++ b/Excavator/Excavator/DrawningExcavator.cs @@ -147,14 +147,14 @@ public class DrawningExcavator return true; // вправо case DirectionType.Right: - if (_startPosX.Value + _drawningExcavatorWidth + EntityExcavator.Step < _pictureWidth.Value) + if (_startPosX.Value + _drawningExcavatorWidth + EntityExcavator.Step < _pictureWidth) { _startPosX += (int)EntityExcavator.Step; } return true; //вниз case DirectionType.Down: - if (_startPosY.Value + _drawningExcavatorHeight + EntityExcavator.Step < _pictureHeight.Value) + if (_startPosY.Value + _drawningExcavatorHeight + EntityExcavator.Step < _pictureHeight) { _startPosY += (int)EntityExcavator.Step; }