version 1.22 | | version 1.23 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: map.c,v 1.22 2001/08/21 05:39:30 mwedel Exp $"; | | * "$Id: map.c,v 1.23 2001/09/18 21:24:54 avogl Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (tmp->last_sp) { | | if (tmp->last_sp) { |
if (check_inv_recursive(op,tmp)==NULL) | | if (check_inv_recursive(op,tmp)==NULL) |
return 1; | | return 1; |
| | else |
| | continue; |
} else { | | } else { |
/* In this case, the player must not have the object - | | /* In this case, the player must not have the object - |
* if they do, they can't pass through. | | * if they do, they can't pass through. |
*/ | | */ |
if (check_inv_recursive(op,tmp)!=NULL) /* player has object */ | | if (check_inv_recursive(op,tmp)!=NULL) /* player has object */ |
return 1; | | return 1; |
| | else |
| | continue; |
} | | } |
} /* if check_inv */ | | } /* if check_inv */ |
| | |