version 1.17 | | version 1.18 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.17 2000/10/16 19:19:31 peterm Exp $"; | | * "$Id: player.c,v 1.18 2000/10/30 22:09:59 jec Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
op->contr->killer); | | op->contr->killer); |
tmp->msg = add_string(buf); | | tmp->msg = add_string(buf); |
tmp->x=op->x,tmp->y=op->y; | | tmp->x=op->x,tmp->y=op->y; |
insert_ob_in_map(tmp,op->map,op); | | insert_ob_in_map (tmp, op->map, NULL); |
| | |
/**************************************/ | | /**************************************/ |
/* */ | | /* */ |
| | |
#ifdef NOT_PERMADEATH | | #ifdef NOT_PERMADEATH |
tmp=arch_to_object(find_archetype("gravestone")); | | tmp=arch_to_object(find_archetype("gravestone")); |
sprintf(buf,"%s's gravestone",op->name); | | sprintf(buf,"%s's gravestone",op->name); |
| | if (tmp->name) |
| | free_string (tmp->name); |
tmp->name=add_string(buf); | | tmp->name=add_string(buf); |
sprintf(buf,"RIP\nHere rests the hero %s the %s,\nwho was killed by %s.\n", | | sprintf(buf,"RIP\nHere rests the hero %s the %s,\nwho was killed by %s.\n", |
op->name, op->contr->title, op->contr->killer); | | op->name, op->contr->title, op->contr->killer); |
| | if (tmp->msg) |
| | free_string (tmp->msg); |
tmp->msg = add_string(buf); | | tmp->msg = add_string(buf); |
tmp->x=x,tmp->y=y; | | tmp->x=x,tmp->y=y; |
insert_ob_in_map(tmp,map,op); | | insert_ob_in_map (tmp, map, NULL); |
#else | | #else |
/* peterm: added to create a corpse at deathsite. */ | | /* peterm: added to create a corpse at deathsite. */ |
tmp=arch_to_object(find_archetype("corpse_pl")); | | tmp=arch_to_object(find_archetype("corpse_pl")); |
| | |
tmp->x=x;tmp->y=y; | | tmp->x=x;tmp->y=y; |
if (tmp->msg) | | if (tmp->msg) |
free_string(tmp->msg); | | free_string(tmp->msg); |
tmp->msg = gravestone_text(op); | | tmp->msg = add_string (gravestone_text(op)); |
SET_FLAG (tmp, FLAG_UNIQUE); | | SET_FLAG (tmp, FLAG_UNIQUE); |
insert_ob_in_map(tmp,map,op); | | insert_ob_in_map (tmp, map, NULL); |
#endif | | #endif |
} | | } |
| | |