|
|
@ -64,16 +64,7 @@ short lab_can_move(Field_State** field, unsigned short x, unsigned short y, Dire |
|
|
|
if (y >= len_y){ |
|
|
|
return 1; |
|
|
|
} |
|
|
|
if (direction == N && field[x][y] == WALL){ |
|
|
|
return 1; |
|
|
|
} |
|
|
|
if (direction == E && field[x][y] == WALL){ |
|
|
|
return 1; |
|
|
|
} |
|
|
|
if (direction == S && field[x][y] == WALL){ |
|
|
|
return 1; |
|
|
|
} |
|
|
|
if (direction == W && field[x][y] == WALL){ |
|
|
|
if (field[x][y] == WALL){ |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|