mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +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) {
|
||||
manual_celllister cl;
|
||||
cl.add(cs);
|
||||
bool optimize = !isWall3(cs);
|
||||
for(int i=0; i<isize(cl.lst); i++) {
|
||||
cell *c = cl.lst[i];
|
||||
if(racing::on && i > 0 && c->wall == waBarrier) continue;
|
||||
if(optimize && isWall3(c)) continue;
|
||||
forCellCM(c2, c) {
|
||||
if(rays_generate) setdist(c2, 7, c);
|
||||
cl.add(c2);
|
||||
|
Loading…
Reference in New Issue
Block a user