version 1.17 | | version 1.18 |
---|
| | |
/* | | /* |
* static char *rcsid_c_object_c = | | * static char *rcsid_c_object_c = |
* "$Id: c_object.c,v 1.17 2001/03/23 07:42:40 mwedel Exp $"; | | * "$Id: c_object.c,v 1.18 2001/04/02 05:55:36 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
int command_examine (object *op, char *params) | | int command_examine (object *op, char *params) |
{ | | { |
if (!params) | | if (!params) { |
examine(op,op->below); | | object *tmp=op->below; |
| | while (tmp && !LOOK_OBJ(tmp)) tmp=tmp->below; |
| | if (tmp) examine(op,tmp); |
| | } |
else { | | else { |
object *tmp=find_best_object_match(op,params); | | object *tmp=find_best_object_match(op,params); |
if (tmp) | | if (tmp) |