version 1.153 | | version 1.154 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.153 2006/01/01 13:03:05 akirschbaum Exp $"; | | * "$Id: apply.c,v 1.154 2006/01/01 20:36:07 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
void move_apply (object *trap, object *victim, object *originator) | | void move_apply (object *trap, object *victim, object *originator) |
{ | | { |
static int recursion_depth = 0; | | static int recursion_depth = 0; |
| | |
| | /* Only exits affect DMs. */ |
| | if (QUERY_FLAG(victim, FLAG_WIZPASS) && trap->type != EXIT) |
| | return; |
| | |
/* move_apply() is the most likely candidate for causing unwanted and | | /* move_apply() is the most likely candidate for causing unwanted and |
* possibly unlimited recursion. | | * possibly unlimited recursion. |
*/ | | */ |