mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-30 15:39:54 +00:00
rogueviz::som:: an option to make floor invisible
This commit is contained in:
parent
41bfaeaf36
commit
6291da56c4
@ -151,6 +151,8 @@ double maxudist;
|
|||||||
|
|
||||||
neuron *distfrom;
|
neuron *distfrom;
|
||||||
|
|
||||||
|
eWall som_floor = waNone;
|
||||||
|
|
||||||
void coloring() {
|
void coloring() {
|
||||||
if(noshow) return;
|
if(noshow) return;
|
||||||
setindex(false);
|
setindex(false);
|
||||||
@ -216,7 +218,7 @@ void coloring() {
|
|||||||
part(net[i].where->landparam_color, pid) = 32 + (191 * (listing[i] - minl)) / (maxl - minl);
|
part(net[i].where->landparam_color, pid) = 32 + (191 * (listing[i] - minl)) / (maxl - minl);
|
||||||
|
|
||||||
for(int i=0; i<cells; i++)
|
for(int i=0; i<cells; i++)
|
||||||
net[i].where->wall = waNone;
|
net[i].where->wall = som_floor;
|
||||||
|
|
||||||
vid.wallmode = 2;
|
vid.wallmode = 2;
|
||||||
}
|
}
|
||||||
@ -1776,6 +1778,9 @@ int readArgs() {
|
|||||||
start_game();
|
start_game();
|
||||||
verify_crawlers();
|
verify_crawlers();
|
||||||
}
|
}
|
||||||
|
else if(argis("-som-no-floor")) {
|
||||||
|
som_floor = waInvisibleFloor;
|
||||||
|
}
|
||||||
else if(argis("-somrestrict")) {
|
else if(argis("-somrestrict")) {
|
||||||
shift(); kohrestrict = argi();
|
shift(); kohrestrict = argi();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user