From 502469a54ad4942289768c0d11a0e7043908cfff Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 27 May 2024 14:38:29 +0200 Subject: [PATCH] innerwall is now a param --- config.cpp | 1 + legacy.cpp | 8 ++++++++ pattern2.cpp | 8 -------- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/config.cpp b/config.cpp index 6333c29d..67912cf6 100644 --- a/config.cpp +++ b/config.cpp @@ -963,6 +963,7 @@ EX void initConfig() { // param_char(patterns::whichCanvas, "whichCanvas", 0); %TODO param_f(ccolor::rwalls, "randomwalls"); + param_b(patterns::innerwalls, "innerwalls"); param_b(vid.grid, "grid"); param_b(models::desitter_projections, "desitter_projections", false); diff --git a/legacy.cpp b/legacy.cpp index 84ba7adb..398f319f 100644 --- a/legacy.cpp +++ b/legacy.cpp @@ -427,6 +427,14 @@ int read_legacy_args_anim() { shift_arg_formula(normal_angle); } } + else if(argis("-innerwall")) { + PHASEFROM(2); + patterns::innerwalls = true; + } + else if(argis("-noinnerwall")) { + PHASEFROM(2); + patterns::innerwalls = false; + } else if(argis("-animrotd")) { start_game(); ma = maRotation; diff --git a/pattern2.cpp b/pattern2.cpp index 9c2f37f2..d8dd6acb 100644 --- a/pattern2.cpp +++ b/pattern2.cpp @@ -3299,14 +3299,6 @@ int read_pattern_args() { ccolor::which = &ccolor::formula; shift(); ccolor::set_formula(args()); } - else if(argis("-innerwall")) { - PHASEFROM(2); - patterns::innerwalls = true; - } - else if(argis("-noinnerwall")) { - PHASEFROM(2); - patterns::innerwalls = false; - } else if(argis("-d:line")) launch_dialog(linepatterns::showMenu);