version 1.79 | | version 1.80 |
---|
| | |
/* | | /* |
* static char *rcsid_time_c = | | * static char *rcsid_time_c = |
* "$Id: time.c,v 1.79 2005/11/16 08:16:09 mwedel Exp $"; | | * "$Id: time.c,v 1.80 2005/11/30 20:59:09 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (!QUERY_FLAG(tmp, FLAG_IS_FLOOR)) break; | | if (!QUERY_FLAG(tmp, FLAG_IS_FLOOR)) break; |
| | |
/* If nothing above us to move, nothing to do */ | | /* If nothing above us to move, nothing to do */ |
if (!tmp) return; | | if (!tmp || QUERY_FLAG(tmp, FLAG_WIZPASS)) return; |
| | |
if(EXIT_PATH(head)) { | | if(EXIT_PATH(head)) { |
if(op->above->type==PLAYER) { | | if(op->above->type==PLAYER) { |
| | |
if (!dir) dir=rndm(1, 8); | | if (!dir) dir=rndm(1, 8); |
| | |
for(victim=get_map_ob(op->map,op->x,op->y); victim !=NULL; victim=victim->above) { | | for(victim=get_map_ob(op->map,op->x,op->y); victim !=NULL; victim=victim->above) { |
if(QUERY_FLAG(victim, FLAG_ALIVE) && (victim->move_type & op->move_type)) { | | if(QUERY_FLAG(victim, FLAG_ALIVE) && !QUERY_FLAG(victim, FLAG_WIZPASS) && (victim->move_type & op->move_type)) { |
| | |
if (victim->head) victim = victim->head; | | if (victim->head) victim = victim->head; |
| | |