version 1.2 | | version 1.3 |
---|
| | |
/* | | /* |
* static char *rcsid_hiscore_c = | | * static char *rcsid_hiscore_c = |
* "$Id: hiscore.c,v 1.2 1999/07/13 06:03:04 cvs Exp $"; | | * "$Id: hiscore.c,v 1.3 2001/07/14 04:11:18 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | Copyright (C) 2001 Mark Wedel |
Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | |
This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
along with this program; if not, write to the Free Software | | along with this program; if not, write to the Free Software |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| | |
The author can be reached via e-mail to frankj@ifi.uio.no. | | The author can be reached via e-mail to mwedel@scruz.net |
*/ | | */ |
| | |
#include <global.h> | | #include <global.h> |
| | |
if(new_score.killer[0]=='\0') | | if(new_score.killer[0]=='\0') |
strcpy(new_score.killer,"a dungeon collapse"); | | strcpy(new_score.killer,"a dungeon collapse"); |
new_score.exp=op->stats.exp; | | new_score.exp=op->stats.exp; |
if(op->map == NULL || op->map->map_object==NULL) | | if(op->map == NULL) |
*new_score.maplevel = '\0'; | | *new_score.maplevel = '\0'; |
else { | | else { |
strncpy(new_score.maplevel,op->map->map_object->name,BIG_NAME-1); | | strncpy(new_score.maplevel,op->map->name,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; |