Difference for server/c_misc.c from version 1.24 to 1.25


version 1.24 version 1.25
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_misc_c =   * static char *rcsid_c_misc_c =
  *   "$Id: c_misc.c,v 1.24 2002/11/13 05:24:53 garbled Exp $";   *   "$Id: c_misc.c,v 1.25 2002/11/26 08:57:56 garbled Exp $";
  */   */
   
 /*  /*
Line 42
 
Line 42
   mapstruct *m;    mapstruct *m;
   char buf[MAX_BUF], map_path[MAX_BUF];    char buf[MAX_BUF], map_path[MAX_BUF];
   long sec = seconds();    long sec = seconds();
 #ifdef MAP_RESET  
   new_draw_info_format(NDI_UNIQUE, 0, op,    new_draw_info_format(NDI_UNIQUE, 0, op,
  "Current time is: %02ld:%02ld:%02ld.",   "Current time is: %02ld:%02ld:%02ld.",
    (sec%86400)/3600,(sec%3600)/60,sec%60);     (sec%86400)/3600,(sec%3600)/60,sec%60);
   new_draw_info(NDI_UNIQUE, 0,op,"Path               Pl PlM IM   TO Dif Reset");    new_draw_info(NDI_UNIQUE, 0,op,"Path               Pl PlM IM   TO Dif Reset");
 #else  
   new_draw_info(NDI_UNIQUE, 0,op,"Pl Pl-M IM   TO Dif");  
 #endif  
   for(m=first_map;m!=NULL;m=m->next) {    for(m=first_map;m!=NULL;m=m->next) {
 #ifndef MAP_RESET  
     if (m->in_memory == MAP_SWAPPED)  
       continue;  
 #endif  
     /* Print out the last 18 characters of the map name... */      /* Print out the last 18 characters of the map name... */
     if (strlen(m->path)<=18) strcpy(map_path, m->path);      if (strlen(m->path)<=18) strcpy(map_path, m->path);
     else strcpy(map_path, m->path + strlen(m->path) - 18);      else strcpy(map_path, m->path + strlen(m->path) - 18);
 #ifndef MAP_RESET  
       sprintf(buf,"%-18.18s %2ld %2d   %1ld %4ld %2ld",  
               map_path, m->players,players_on_map(m,FALSE),m->in_memory,m->timeout,  
               m->difficulty);  
 #else  
       sprintf(buf,"%-18.18s %2d %2d   %1d %4d %2d  %02d:%02d:%02d",        sprintf(buf,"%-18.18s %2d %2d   %1d %4d %2d  %02d:%02d:%02d",
               map_path, m->players,players_on_map(m,FALSE),                map_path, m->players,players_on_map(m,FALSE),
               m->in_memory,m->timeout,m->difficulty,                m->in_memory,m->timeout,m->difficulty,
        (MAP_WHEN_RESET(m)%86400)/3600,(MAP_WHEN_RESET(m)%3600)/60,         (MAP_WHEN_RESET(m)%86400)/3600,(MAP_WHEN_RESET(m)%3600)/60,
               MAP_WHEN_RESET(m)%60);                MAP_WHEN_RESET(m)%60);
 #endif  
     new_draw_info(NDI_UNIQUE, 0,op,buf);      new_draw_info(NDI_UNIQUE, 0,op,buf);
   }    }
 }  }


Legend:
line(s) removed in v.1.24 
line(s) changed
 line(s) added in v.1.25

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