version 1.17 | | version 1.18 |
---|
| | |
| | |
/* | | /* |
* static char *rcs_treasure_c = | | * static char *rcs_treasure_c = |
* "$Id: treasure.c,v 1.17 2001/06/23 12:59:22 gros Exp $"; | | * "$Id: treasure.c,v 1.18 2001/07/14 04:04:53 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (flags & GT_ENVIRONMENT) { | | if (flags & GT_ENVIRONMENT) { |
op->x = creator->x; | | op->x = creator->x; |
op->y = creator->y; | | op->y = creator->y; |
insert_ob_in_map_simple (op, creator->map); | | insert_ob_in_map (op, creator->map,op,INS_NO_MERGE | INS_NO_WALK_ON); |
} else { | | } else { |
op = insert_ob_in_ob (op, creator); | | op = insert_ob_in_ob (op, creator); |
if ((flags & GT_APPLY) && QUERY_FLAG (creator, FLAG_MONSTER)) | | if ((flags & GT_APPLY) && QUERY_FLAG (creator, FLAG_MONSTER)) |
| | |
SET_FLAG(op,FLAG_XRAYS); | | SET_FLAG(op,FLAG_XRAYS); |
if (QUERY_FLAG(change,FLAG_BLIND)) | | if (QUERY_FLAG(change,FLAG_BLIND)) |
SET_FLAG(op,FLAG_BLIND); | | SET_FLAG(op,FLAG_BLIND); |
#ifdef USE_LIGHTING | | |
if (QUERY_FLAG(change,FLAG_SEE_IN_DARK)) | | if (QUERY_FLAG(change,FLAG_SEE_IN_DARK)) |
SET_FLAG(op,FLAG_SEE_IN_DARK); | | SET_FLAG(op,FLAG_SEE_IN_DARK); |
#endif | | |
if (QUERY_FLAG(change,FLAG_REFL_MISSILE)) | | if (QUERY_FLAG(change,FLAG_REFL_MISSILE)) |
SET_FLAG(op,FLAG_REFL_MISSILE); | | SET_FLAG(op,FLAG_REFL_MISSILE); |
if (QUERY_FLAG(change,FLAG_MAKE_INVIS)) | | if (QUERY_FLAG(change,FLAG_MAKE_INVIS)) |