Difference for server/resurrection.c from version 1.17 to 1.18


version 1.17 version 1.18
Line 1
 
Line 1
 /*  /*
  * 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
Line 119
 
Line 119
  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"))) {
Line 268
 
Line 260
   
   
   
   #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];
Line 290
 
Line 287
     return !(access(buf,0));      return !(access(buf,0));
 }  }
   
   #endif


Legend:
line(s) removed in v.1.17 
line(s) changed
 line(s) added in v.1.18

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:43