version 1.83 | | version 1.84 |
---|
| | |
/* | | /* |
* static char *rcsid_time_c = | | * static char *rcsid_time_c = |
* "$Id: time.c,v 1.83 2005/12/10 14:27:10 akirschbaum Exp $"; | | * "$Id: time.c,v 1.84 2006/01/07 14:30:07 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (!tmp || QUERY_FLAG(tmp, FLAG_WIZPASS)) return; | | if (!tmp || QUERY_FLAG(tmp, FLAG_WIZPASS)) return; |
| | |
if(EXIT_PATH(head)) { | | if(EXIT_PATH(head)) { |
if(op->above->type==PLAYER) { | | if(tmp->type==PLAYER) { |
/* Lauwenmark: Handle for plugin TRIGGER event */ | | /* Lauwenmark: Handle for plugin TRIGGER event */ |
if (execute_event(op, EVENT_TRIGGER,op->above,NULL,NULL,SCRIPT_FIX_ALL) != 0) | | if (execute_event(op, EVENT_TRIGGER, tmp, NULL, NULL, SCRIPT_FIX_ALL) != 0) |
return; | | return; |
enter_exit(op->above, head); | | enter_exit(tmp, head); |
} | | } |
else | | else |
/* Currently only players can transfer maps */ | | /* Currently only players can transfer maps */ |
| | |
return; | | return; |
} | | } |
/* Lauwenmark: Handle for plugin TRIGGER event */ | | /* Lauwenmark: Handle for plugin TRIGGER event */ |
if (execute_event(op, EVENT_TRIGGER,op->above,NULL,NULL,SCRIPT_FIX_ALL)!= 0) | | if (execute_event(op, EVENT_TRIGGER, tmp, NULL, NULL, SCRIPT_FIX_ALL) != 0) |
return; | | return; |
transfer_ob(tmp,EXIT_X(head),EXIT_Y(head),0,head); | | transfer_ob(tmp,EXIT_X(head),EXIT_Y(head),0,head); |
} | | } |
else { | | else { |
/* Random teleporter */ | | /* Random teleporter */ |
/* Lauwenmark: Handle for plugin TRIGGER event */ | | /* Lauwenmark: Handle for plugin TRIGGER event */ |
if (execute_event(op, EVENT_TRIGGER,op->above,NULL,NULL,SCRIPT_FIX_ALL)!= 0) | | if (execute_event(op, EVENT_TRIGGER, tmp, NULL, NULL, SCRIPT_FIX_ALL) != 0) |
return; | | return; |
teleport(head, TELEPORTER, tmp); | | teleport(head, TELEPORTER, tmp); |
} | | } |