Фиксация лабы
This commit is contained in:
parent
18aeff9872
commit
5c14d4e6cc
@ -32,7 +32,7 @@ namespace WarmlyShip
|
|||||||
return DrawMapWithObject();
|
return DrawMapWithObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool CanMove(Direction direction, (float Left, float Right, float Top, float Bottom) position)
|
private bool CanMove(Direction direction, (float Left, float Right, float Top, float Bottom) position) //Проверка на возможность шага
|
||||||
{
|
{
|
||||||
for (int i = (int)(position.Top / _size_y); i <= (int)(position.Bottom / _size_y); ++i)
|
for (int i = (int)(position.Top / _size_y); i <= (int)(position.Bottom / _size_y); ++i)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user