1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 07:29:54 +00:00

innerwall is now a param

This commit is contained in:
Zeno Rogue 2024-05-27 14:38:29 +02:00
parent 0df75589ca
commit 502469a54a
3 changed files with 9 additions and 8 deletions

View File

@ -963,6 +963,7 @@ EX void initConfig() {
// param_char(patterns::whichCanvas, "whichCanvas", 0); %TODO // param_char(patterns::whichCanvas, "whichCanvas", 0); %TODO
param_f(ccolor::rwalls, "randomwalls"); param_f(ccolor::rwalls, "randomwalls");
param_b(patterns::innerwalls, "innerwalls");
param_b(vid.grid, "grid"); param_b(vid.grid, "grid");
param_b(models::desitter_projections, "desitter_projections", false); param_b(models::desitter_projections, "desitter_projections", false);

View File

@ -427,6 +427,14 @@ int read_legacy_args_anim() {
shift_arg_formula(normal_angle); 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")) { else if(argis("-animrotd")) {
start_game(); start_game();
ma = maRotation; ma = maRotation;

View File

@ -3299,14 +3299,6 @@ int read_pattern_args() {
ccolor::which = &ccolor::formula; ccolor::which = &ccolor::formula;
shift(); ccolor::set_formula(args()); 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")) else if(argis("-d:line"))
launch_dialog(linepatterns::showMenu); launch_dialog(linepatterns::showMenu);