version 1.3 | | version 1.4 |
---|
| | |
/* | | /* |
* static char *rcsid_hiscore_c = | | * static char *rcsid_hiscore_c = |
* "$Id: hiscore.c,v 1.3 2001/07/14 04:11:18 mwedel Exp $"; | | * "$Id: hiscore.c,v 1.4 2001/08/05 05:07:20 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if(op->map == NULL) | | if(op->map == NULL) |
*new_score.maplevel = '\0'; | | *new_score.maplevel = '\0'; |
else { | | else { |
strncpy(new_score.maplevel,op->map->name,BIG_NAME-1); | | strncpy(new_score.maplevel, |
| | op->map->name?op->map->name:op->map->path, |
| | BIG_NAME-1); |
new_score.maplevel[BIG_NAME-1] = '\0'; | | new_score.maplevel[BIG_NAME-1] = '\0'; |
} | | } |
new_score.maxhp=(int) op->stats.maxhp; | | new_score.maxhp=(int) op->stats.maxhp; |