version 1.85 | | version 1.86 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.85 2003/09/03 12:25:06 tchize Exp $"; | | * "$Id: apply.c,v 1.86 2003/09/04 06:25:32 temitchell Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
goto leave; | | goto leave; |
| | |
case RUNE: | | case RUNE: |
| | case TRAP: |
if (trap->level && QUERY_FLAG (victim, FLAG_ALIVE)) | | if (trap->level && QUERY_FLAG (victim, FLAG_ALIVE)) |
{ | | { |
spring_trap(trap, victim); | | spring_trap(trap, victim); |
| | |
treas->y=op->y; | | treas->y=op->y; |
treas = insert_ob_in_map (treas, op->map, op,INS_BELOW_ORIGINATOR); | | treas = insert_ob_in_map (treas, op->map, op,INS_BELOW_ORIGINATOR); |
| | |
if (treas && treas->type == RUNE && treas->level | | if (treas && (treas->type == RUNE || treas->type == TRAP) && treas->level |
&& QUERY_FLAG (op, FLAG_ALIVE)) | | && QUERY_FLAG (op, FLAG_ALIVE)) |
spring_trap (treas, op); | | spring_trap (treas, op); |
/* If either player or container was destroyed, no need to do | | /* If either player or container was destroyed, no need to do |
| | |
} | | } |
} | | } |
} | | } |
| | |
| | |