mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 22:39:53 +00:00
ray:: do not create through walls
This commit is contained in:
parent
72789f5a52
commit
add21e134a
@ -715,9 +715,11 @@ EX void cast() {
|
|||||||
if(true) {
|
if(true) {
|
||||||
manual_celllister cl;
|
manual_celllister cl;
|
||||||
cl.add(cs);
|
cl.add(cs);
|
||||||
|
bool optimize = !isWall3(cs);
|
||||||
for(int i=0; i<isize(cl.lst); i++) {
|
for(int i=0; i<isize(cl.lst); i++) {
|
||||||
cell *c = cl.lst[i];
|
cell *c = cl.lst[i];
|
||||||
if(racing::on && i > 0 && c->wall == waBarrier) continue;
|
if(racing::on && i > 0 && c->wall == waBarrier) continue;
|
||||||
|
if(optimize && isWall3(c)) continue;
|
||||||
forCellCM(c2, c) {
|
forCellCM(c2, c) {
|
||||||
if(rays_generate) setdist(c2, 7, c);
|
if(rays_generate) setdist(c2, 7, c);
|
||||||
cl.add(c2);
|
cl.add(c2);
|
||||||
|
Loading…
Reference in New Issue
Block a user