back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/gameplay.cpp
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-11-18 18:01:32 +0300
committerscratko <m@scratko.xyz>2024-11-18 20:36:37 +0300
commit503e7350fa3d8065e2f4814181664382154dc702 (patch)
tree18ec4fd2dc2d55e286b164c79f673b9e67e4c1bd /gameplay.cpp
parent7fea2267e78de935af6010d5ac7300e51f471601 (diff)
downloadpicture-puzzle-503e7350fa3d8065e2f4814181664382154dc702.tar.gz
picture-puzzle-503e7350fa3d8065e2f4814181664382154dc702.tar.bz2
picture-puzzle-503e7350fa3d8065e2f4814181664382154dc702.zip
Random image selection
Added a dialog box about. Checks if the selected file is correct.
Diffstat (limited to 'gameplay.cpp')
-rw-r--r--gameplay.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gameplay.cpp b/gameplay.cpp
index 0c6a1ab..d6bf59f 100644
--- a/gameplay.cpp
+++ b/gameplay.cpp
@@ -62,6 +62,7 @@ void press_button_callback(Fl_Widget *w, void *params)
void PuzzleGame::StartGame(GameParams *gp)
{
+ gp->SelectRandomPicture();
gp->ResetFreePuzzles();
gp->CreateNewPuzzles();
gp->win->redraw();