From 39041fa006bfe9a4ddb4fe11cc08f21614edcf92 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 14 Mar 2025 13:15:58 +0100 Subject: [PATCH] rogueviz::fifteen:: achievement for solving Fifteen --- rogueviz/fifteen.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rogueviz/fifteen.cpp b/rogueviz/fifteen.cpp index dbd87c67..004d3962 100644 --- a/rogueviz/fifteen.cpp +++ b/rogueviz/fifteen.cpp @@ -137,7 +137,12 @@ void check_move() { if(f.current && (f.currentdir != f.targetdir || f.currentmirror != f.targetmirror)) ok = false; } - if(ok == true) state = state::solved; + if(ok == true) { + state = state::solved; + #if RVCOL + if(current_puzzle = &puzzles[1]) rv_achievement("FIFTEEN"); + #endif + } } } }