version 1.5 | | version 1.6 |
---|
| | |
/* | | /* |
* static char *rcsid_utils_c = | | * static char *rcsid_utils_c = |
* "$Id: utils.c,v 1.5 2002/07/15 04:25:39 mwedel Exp $"; | | * "$Id: utils.c,v 1.6 2002/11/08 08:50:44 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
QUERY_FLAG(op, FLAG_OBJ_ORIGINAL) || | | QUERY_FLAG(op, FLAG_OBJ_ORIGINAL) || |
QUERY_FLAG(op, FLAG_OBJ_SAVE_ON_OVL) || | | QUERY_FLAG(op, FLAG_OBJ_SAVE_ON_OVL) || |
QUERY_FLAG(op, FLAG_UNIQUE) || | | QUERY_FLAG(op, FLAG_UNIQUE) || |
| | QUERY_FLAG(op, FLAG_OVERLAY_FLOOR) || |
QUERY_FLAG(op, FLAG_UNPAID) || IS_LIVE(op)) | | QUERY_FLAG(op, FLAG_UNPAID) || IS_LIVE(op)) |
continue; | | continue; |
/* otherwise, we decay and destroy */ | | /* otherwise, we decay and destroy */ |
| | |
if (op->material & M_ICE && MAP_TEMP(m) > 32) | | if (op->material & M_ICE && MAP_TEMP(m) > 32) |
destroy = 1; | | destroy = 1; |
} | | } |
if (destroy) { | | /* adjust overall chance below */ |
| | if (destroy && rndm(0, 1)) { |
remove_ob(op); | | remove_ob(op); |
free_object(op); | | free_object(op); |
} | | } |