mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
ray:: do not switch if no sample
This commit is contained in:
parent
8385cad774
commit
36f3a0cf7b
@ -1997,8 +1997,8 @@ struct raycast_map {
|
||||
for(auto& p: sa) {
|
||||
int id = p.first;
|
||||
cell *c = p.second;
|
||||
intra::may_switch_to(c);
|
||||
if(!c) continue;
|
||||
intra::may_switch_to(c);
|
||||
for(int j=0; j<c->type; j++)
|
||||
ms[id+j] = protect_prod(currentmap->ray_iadj(c, j));
|
||||
if(WDIM == 2) for(int a: {0, 1}) {
|
||||
|
Loading…
Reference in New Issue
Block a user