Set the seen vector of lev as if seen from (x0,y0) to (x,y). */
| 3366 | |
| 3367 | /* Set the seen vector of lev as if seen from (x0,y0) to (x,y). */ |
| 3368 | staticfn void |
| 3369 | set_seenv( |
| 3370 | struct rm *lev, |
| 3371 | coordxy x0, coordxy y0, /* from */ |
| 3372 | coordxy x, coordxy y) /* to */ |
| 3373 | { |
| 3374 | coordxy dx = x - x0, dy = y0 - y; |
| 3375 | |
| 3376 | lev->seenv |= seenv_matrix[sign(dy) + 1][sign(dx) + 1]; |
| 3377 | } |
| 3378 | |
| 3379 | #undef sign |
| 3380 |