version 1.27 | | version 1.28 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.27 2003/12/02 18:51:44 ryo_saeba Exp $"; | | * "$Id: item.c,v 1.28 2004/02/11 08:09:29 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
void look_at(object *op,int dx,int dy) { | | void look_at(object *op,int dx,int dy) { |
object *tmp; | | object *tmp; |
int flag=0,x,y; | | int flag=0; |
| | sint16 x,y; |
mapstruct *m; | | mapstruct *m; |
| | |
| | |
| | |
else | | else |
new_draw_info_format(NDI_UNIQUE,0, op, "- %s.",query_name(tmp)); | | new_draw_info_format(NDI_UNIQUE,0, op, "- %s.",query_name(tmp)); |
| | |
if((tmp->inv!=NULL || (tmp->head && tmp->head->inv)) && | | if (((tmp->inv!=NULL || (tmp->head && tmp->head->inv)) && |
( (!dx&&!dy) || tmp->type != CONTAINER || QUERY_FLAG(op, FLAG_WIZ) | | (tmp->type != CONTAINER && tmp->type!=FLESH)) || QUERY_FLAG(op, FLAG_WIZ)) |
|| !(tmp->type) || tmp->type!=FLESH )) | | |
inventory(op,tmp->head==NULL?tmp:tmp->head); | | inventory(op,tmp->head==NULL?tmp:tmp->head); |
| | |
if(QUERY_FLAG(tmp, FLAG_IS_FLOOR)&&!QUERY_FLAG(op, FLAG_WIZ)) /* don't continue under the floor */ | | if(QUERY_FLAG(tmp, FLAG_IS_FLOOR)&&!QUERY_FLAG(op, FLAG_WIZ)) /* don't continue under the floor */ |