Merge branch 'main' of github.com:mod-cpp/pacman
This commit is contained in:
commit
d9536b94ea
|
@ -54,7 +54,7 @@ constexpr std::array<std::array<int, COLUMNS>, ROWS> board = {{
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
static Cell cellAtPosition(GridPosition point) {
|
static Cell cellAtPosition(GridPosition point) {
|
||||||
if (point.x < 0 || point.x >= COLUMNS || point.y < 0 || point.y >= ROWS)
|
if (point.x >= COLUMNS || point.y >= ROWS)
|
||||||
return Cell::wall;
|
return Cell::wall;
|
||||||
return Cell(board[point.y][point.x]);
|
return Cell(board[point.y][point.x]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue