version 1.17 | | version 1.18 |
---|
| | |
/* | | /* |
* static char *rcsid_resurrection_c = | | * static char *rcsid_resurrection_c = |
* "$Id: resurrection.c,v 1.17 2006/05/05 09:26:35 ryo_saeba Exp $"; | | * "$Id: resurrection.c,v 1.18 2006/06/05 06:28:56 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
Copyright (C) 2002 Mark Wedel & Crossfire Development Team | | Copyright (C) 2006 Mark Wedel & Crossfire Development Team |
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 |
| | |
fgets(buf,255,deadplayer); | | fgets(buf,255,deadplayer); |
sscanf(buf,"%s",buf2); | | sscanf(buf,"%s",buf2); |
if( ! (strcmp(buf2,"exp"))) { | | if( ! (strcmp(buf2,"exp"))) { |
#ifndef WIN32 | | sscanf(buf,"%s %" FMT64, buf2, &exp); |
sscanf(buf,"%s %lld",buf2,&exp); | | |
#else | | |
sscanf(buf,"%s %I64d",buf2,&exp); | | |
#endif | | |
if (spell->stats.exp) { | | if (spell->stats.exp) { |
exp-=exp/spell->stats.exp; | | exp-=exp/spell->stats.exp; |
#ifndef WIN32 | | sprintf(buf,"exp %" FMT64 "\n",exp); |
sprintf(buf,"exp %lld\n",exp); | | |
#else | | |
sprintf(buf,"exp %I64d\n",exp); | | |
#endif | | |
} | | } |
} | | } |
if(! (strcmp(buf2,"Con"))) { | | if(! (strcmp(buf2,"Con"))) { |
| | |
| | |
| | |
| | |
| | #if 0 |
| | /* dead_character & dead_player_exists are no longer used - should perhaps be |
| | * removed. MSW 2006-06-02 |
| | */ |
| | |
static void dead_character(const char *name) { | | static void dead_character(const char *name) { |
char buf[MAX_BUF]; | | char buf[MAX_BUF]; |
char buf2[MAX_BUF]; | | char buf2[MAX_BUF]; |
| | |
return !(access(buf,0)); | | return !(access(buf,0)); |
} | | } |
| | |
| | #endif |