version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_los_c = | | * static char *rcsid_los_c = |
* "$Id: los.c,v 1.9 2003/01/08 08:39:17 mwedel Exp $"; | | * "$Id: los.c,v 1.10 2003/04/02 08:12:53 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
if(get_map_flags(op->map, NULL, | | if(get_map_flags(op->map, NULL, |
op->x + x - MAP_CLIENT_X/2, op->y + y - MAP_CLIENT_Y/2, | | op->x + x - MAP_CLIENT_X/2, op->y + y - MAP_CLIENT_Y/2, |
NULL, NULL) & P_BLOCKSVIEW) | | NULL, NULL) & (P_BLOCKSVIEW | P_OUT_OF_MAP)) |
set_wall(op,x,y); | | set_wall(op,x,y); |
} | | } |
| | |
| | |
!(get_map_flags(op->map,NULL, | | !(get_map_flags(op->map,NULL, |
op->x-op->contr->socket.mapx/2+x, | | op->x-op->contr->socket.mapx/2+x, |
op->y-op->contr->socket.mapy/2+y, | | op->y-op->contr->socket.mapy/2+y, |
NULL, NULL) & P_BLOCKSVIEW)) { | | NULL, NULL) & (P_BLOCKSVIEW | P_OUT_OF_MAP))) { |
| | |
for(i=1;i<=8;i+=1) { /* mark all directions */ | | for(i=1;i<=8;i+=1) { /* mark all directions */ |
dx = x + freearr_x[i]; | | dx = x + freearr_x[i]; |