back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/gameplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gameplay.cpp')
-rw-r--r--gameplay.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gameplay.cpp b/gameplay.cpp
index d6bf59f..0fcb39c 100644
--- a/gameplay.cpp
+++ b/gameplay.cpp
@@ -7,8 +7,8 @@
#include <memory>
#include <vector>
-static bool is_next_to_empty_box(GameParams::coordinates empty_box_pos,
- GameParams::coordinates current_pos)
+bool is_next_to_empty_box(GameParams::coordinates empty_box_pos,
+ GameParams::coordinates current_pos)
{
return
(current_pos.x - spacing - puzzle_size == empty_box_pos.x &&
@@ -30,7 +30,7 @@ static bool is_coordinate_match(GameParams::coordinates& first,
bool PuzzleGame::IsFinalPlacement(GameParams *gp)
{
bool is_match = 1;
- auto lambda = [gp, &is_match](std::unique_ptr<Puzzle>& next_puzzle) {
+ auto lambda = [gp, &is_match](const std::unique_ptr<Puzzle>& next_puzzle) {
GameParams::coordinates pos_next_puzzle =
{ next_puzzle->x(), next_puzzle->y() };
GameParams::coordinates target_pos =