version 1.18 | | version 1.19 |
---|
| | |
/* | | /* |
* static char *rcsid_time_c = | | * static char *rcsid_time_c = |
* "$Id: time.c,v 1.18 2000/12/15 15:42:37 avogl Exp $"; | | * "$Id: time.c,v 1.19 2000/12/20 20:29:29 avogl Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
while(op!=NULL&&op->type!=PLAYER) | | while(op!=NULL&&op->type!=PLAYER) |
op=op->env; | | op=op->env; |
if(op!=NULL) { | | if(op!=NULL) { |
if(blocks_magic(op->map,op->x,op->y) && wor->stats.hp != 1) | | if(blocks_magic(op->map,op->x,op->y)) |
new_draw_info(NDI_UNIQUE, 0,op,"You feel something fizzle inside you."); | | new_draw_info(NDI_UNIQUE, 0,op,"You feel something fizzle inside you."); |
else | | else |
enter_exit(op,wor); | | enter_exit(op,wor); |
| | |
void move_player_changer(object *op) { | | void move_player_changer(object *op) { |
object *player; | | object *player; |
object *walk; | | object *walk; |
| | char c; |
if(op->above!=NULL) { | | if(op->above!=NULL) { |
if(EXIT_PATH(op)) { | | if(EXIT_PATH(op)) { |
if(op->above->type==PLAYER) { | | if(op->above->type==PLAYER) { |
| | |
link_player_skills(op->above); | | link_player_skills(op->above); |
esrv_send_inventory(op->above,op->above); | | esrv_send_inventory(op->above,op->above); |
esrv_update_item(UPD_FACE, op->above, op->above); | | esrv_update_item(UPD_FACE, op->above, op->above); |
| | |
| | /* update players death & WoR home-position */ |
| | sscanf(EXIT_PATH(op), "%c", &c); |
| | if (c == '/') { |
| | strcpy(player->contr->savebed_map, EXIT_PATH(op)); |
| | player->contr->bed_x = EXIT_X(op), player->contr->bed_y = EXIT_Y(op); |
| | } |
| | else |
| | LOG(llevDebug, "WARNING: destination '%s' in player_changer must be an absolute path!", |
| | EXIT_PATH(op)); |
| | |
enter_exit(op->above,op); | | enter_exit(op->above,op); |
| | save_player(player, 0); |
} | | } |
else | | else |
return; | | return; |