1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

calling -canvas now automatically resets rwalls to 0 if in 2D

This commit is contained in:
Zeno Rogue 2024-06-16 13:57:54 +02:00
parent bec0cc4301
commit 547a95e583

View File

@ -1860,6 +1860,7 @@ EX namespace ccolor {
EX data *which = &plain;
EX void set_plain(color_t col) { which = &plain; plain.ctab = {col}; }
EX void set_plain_nowall(color_t col) { which = &plain; plain.ctab = {col}; if(GDIM == 2) rwalls = 0; }
EX void set_random(int r) { which = &random; rwalls = r; }
EX void set_formula(const string& s) { which = &formula; color_formula = s; }
EX void set_colors(data& d, const colortable& tab) { which = &d; d.ctab = tab; }
@ -3278,7 +3279,7 @@ int read_pattern_args() {
ccolor::which = p;
break;
}
if(!found) ccolor::set_plain(argcolor(24));
if(!found) { ccolor::set_plain_nowall(argcolor(24)); }
}
stop_game_and_switch_mode(rg::nothing);
}