rogueviz::som:: an option to make floor invisible

This commit is contained in:
Zeno Rogue 2022-07-23 15:39:36 +02:00
parent 41bfaeaf36
commit 6291da56c4
1 changed files with 6 additions and 1 deletions

View File

@ -151,6 +151,8 @@ double maxudist;
neuron *distfrom;
eWall som_floor = waNone;
void coloring() {
if(noshow) return;
setindex(false);
@ -216,7 +218,7 @@ void coloring() {
part(net[i].where->landparam_color, pid) = 32 + (191 * (listing[i] - minl)) / (maxl - minl);
for(int i=0; i<cells; i++)
net[i].where->wall = waNone;
net[i].where->wall = som_floor;
vid.wallmode = 2;
}
@ -1776,6 +1778,9 @@ int readArgs() {
start_game();
verify_crawlers();
}
else if(argis("-som-no-floor")) {
som_floor = waInvisibleFloor;
}
else if(argis("-somrestrict")) {
shift(); kohrestrict = argi();
}