version 1.17 | | version 1.18 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.17 2001/08/21 05:39:31 mwedel Exp $"; | | * "$Id: item.c,v 1.18 2001/08/29 07:14:16 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (FABS(dx)>MAP_CLIENT_X/2 || FABS(dy)>MAP_CLIENT_Y/2) | | if (FABS(dx)>MAP_CLIENT_X/2 || FABS(dy)>MAP_CLIENT_Y/2) |
return; | | return; |
| | |
if(pl->blocked_los[dx+MAP_CLIENT_X/2][dy+MAP_CLIENT_Y/2]) | | if(pl->blocked_los[dx+(pl->socket.mapx/2)][dy+(pl->socket.mapy/2)]) |
return; | | return; |
look_at(pl->ob, dx, dy); | | look_at(pl->ob, dx, dy); |
} | | } |