version 1.27 | | version 1.28 |
---|
| | |
/* | | /* |
* static char *rcsid_time_c = | | * static char *rcsid_time_c = |
* "$Id: time.c,v 1.27 2001/08/05 05:07:20 mwedel Exp $"; | | * "$Id: time.c,v 1.28 2001/08/05 22:34:04 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
void move_teleporter(object *op) { | | void move_teleporter(object *op) { |
| | |
| | |
| | /* Some things can't get moved. If, skip over them. */ |
| | while (op->above && |
| | (QUERY_FLAG(op->above, FLAG_NO_PASS) || |
| | QUERY_FLAG(op->above, FLAG_IS_FLOOR))) op=op->above; |
| | |
/* If nothing above us, nothing to do */ | | /* If nothing above us, nothing to do */ |
if (!op->above) return; | | if (!op->above) return; |
| | |
/* Some things can't get moved */ | | |
if (QUERY_FLAG(op->above, FLAG_NO_PASS) || | | |
QUERY_FLAG(op->above, FLAG_IS_FLOOR)) return; | | |
| | |
if(EXIT_PATH(op)) { | | if(EXIT_PATH(op)) { |
if(op->above->type==PLAYER) | | if(op->above->type==PLAYER) |
enter_exit(op->above,op); | | enter_exit(op->above,op); |