version 1.164 | | version 1.165 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.164 2005/05/29 15:37:54 tchize Exp $"; | | * "$Id: player.c,v 1.165 2005/07/10 13:54:06 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
p->explore=0; | | p->explore=0; |
p->no_shout=0; /* default can shout */ | | p->no_shout=0; /* default can shout */ |
| | |
strncpy(p->title,op->arch->clone.name,MAX_NAME); | | strncpy(p->title, op->arch->clone.name, sizeof(p->title)-1); |
| | p->title[sizeof(p->title)-1] = '\0'; |
op->race = add_string (op->arch->clone.race); | | op->race = add_string (op->arch->clone.race); |
| | |
CLEAR_FLAG(op,FLAG_READY_SKILL); | | CLEAR_FLAG(op,FLAG_READY_SKILL); |
| | |
op->y = y; | | op->y = y; |
SET_ANIMATION(op, 2); /* So player faces south */ | | SET_ANIMATION(op, 2); /* So player faces south */ |
insert_ob_in_map (op, op->map, op,0); | | insert_ob_in_map (op, op->map, op,0); |
strncpy(op->contr->title,op->arch->clone.name,MAX_NAME); | | strncpy(op->contr->title, op->arch->clone.name, sizeof(op->contr->title)-1); |
| | op->contr->title[sizeof(op->contr->title)-1] = '\0'; |
add_statbonus(op); | | add_statbonus(op); |
tmp_loop=allowed_class(op); | | tmp_loop=allowed_class(op); |
} | | } |