From 43ea4d6bbf19f74b4a0ff1bed738146dd2300568 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 16 Jun 2024 13:58:10 +0200 Subject: [PATCH] rwalls setter now has a quick option to set no walls --- pattern2.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pattern2.cpp b/pattern2.cpp index 00d2ce65..351a26c3 100644 --- a/pattern2.cpp +++ b/pattern2.cpp @@ -1569,6 +1569,10 @@ EX namespace ccolor { EX void edit_rwalls() { dialog::editNumber(rwalls, 0, 100, 10, 50, XLAT("probability of a wall (%)"), ""); + dialog::get_di().extra_options = [] { + dialog::addSelItem(XLAT("no walls"), "0", 'N'); + dialog::add_action([] { rwalls = 0; stop_game(); start_game(); popScreen(); }); + }; dialog::get_di().reaction = [] { stop_game(); start_game(); }; }