version 1.98 | | version 1.99 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.98 2002/11/12 22:34:26 garbled Exp $"; | | * "$Id: player.c,v 1.99 2002/11/12 23:09:11 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
strcpy(op->contr->killer,"quit"); | | strcpy(op->contr->killer,"quit"); |
check_score(op); | | check_score(op); |
op->contr->party_number=(-1); | | op->contr->party_number=(-1); |
#ifdef SET_TITLE | | if (settings.set_title == TRUE) |
op->contr->own_title[0]='\0'; | | op->contr->own_title[0]='\0'; |
#endif /* SET_TITLE */ | | |
if(!QUERY_FLAG(op,FLAG_WAS_WIZ)) { | | if(!QUERY_FLAG(op,FLAG_WAS_WIZ)) { |
sprintf(buf,"%s/%s/%s/%s.pl",settings.localdir,settings.playerdir,op->name,op->name); | | sprintf(buf,"%s/%s/%s/%s.pl",settings.localdir,settings.playerdir,op->name,op->name); |
if(unlink(buf)== -1 && settings.debug >= llevDebug) | | if(unlink(buf)== -1 && settings.debug >= llevDebug) |
| | |
*/ | | */ |
| | |
op->contr->party_number=(-1); | | op->contr->party_number=(-1); |
#ifdef SET_TITLE | | if (settings.set_title == TRUE) |
op->contr->own_title[0]='\0'; | | op->contr->own_title[0]='\0'; |
#endif /* SET_TITLE */ | | |
new_draw_info(NDI_UNIQUE|NDI_ALL, 0,NULL, buf); | | new_draw_info(NDI_UNIQUE|NDI_ALL, 0,NULL, buf); |
check_score(op); | | check_score(op); |
if(op->contr->golem!=NULL) { | | if(op->contr->golem!=NULL) { |
| | |
op->direction=0; | | op->direction=0; |
if(!QUERY_FLAG(op,FLAG_WAS_WIZ)&&op->stats.exp) { | | if(!QUERY_FLAG(op,FLAG_WAS_WIZ)&&op->stats.exp) { |
delete_character(op->name,0); | | delete_character(op->name,0); |
if (settings.not_permadeth == FALSE) { | | if (settings.not_permadeth == FALSE && settings.resurrection == TRUE) { |
#ifdef RESURRECTION | | |
/* save playerfile sans equipment when player dies | | /* save playerfile sans equipment when player dies |
** then save it as player.pl.dead so that future resurrection | | ** then save it as player.pl.dead so that future resurrection |
** type spells will work on them nicely | | ** type spells will work on them nicely |
| | |
op->map = map; | | op->map = map; |
/* please see resurrection.c: peterm */ | | /* please see resurrection.c: peterm */ |
dead_player(op); | | dead_player(op); |
#endif | | } |
} | | } |
} | | } |
play_again(op); | | play_again(op); |