Difference for socket/metaserver.c from version 1.18 to 1.19


version 1.18 version 1.19
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_metaserver_c =   * static char *rcsid_metaserver_c =
  *    "$Id: metaserver.c,v 1.18 2006/05/20 12:36:48 ryo_saeba Exp $";   *    "$Id: metaserver.c,v 1.19 2006/07/16 08:46:07 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 126
 
Line 126
   
     /* We could use socket_info.nconns, but that is not quite as accurate,      /* We could use socket_info.nconns, but that is not quite as accurate,
      * as connections in the progress of being established, are listening       * as connections in the progress of being established, are listening
      * but don't have a player, etc.  This operation below should not be that       * but don't have a player, etc.  The checks below are basically the
      * costly.       * same as for the who commands with the addition that WIZ, AFK, and BOT
        * players are not counted.
      */       */
     for (pl=first_player; pl!=NULL; pl=pl->next) {      for (pl=first_player; pl!=NULL; pl=pl->next) {
         if (!pl->hidden && (pl->socket.is_bot == 0)) num_players++;          if (pl->ob->map == NULL) continue;
           if (pl->hidden) continue;
           if (QUERY_FLAG(pl->ob, FLAG_WIZ)) continue;
           if (QUERY_FLAG(pl->ob, FLAG_AFK)) continue;
           if (pl->state != ST_PLAYING && pl->state != ST_GET_PARTY_PASSWORD) continue;
           if (pl->socket.is_bot) continue;
           num_players++;
     }      }
   
     sprintf(data,"%s|%d|%s|%s|%d|%d|%ld", settings.meta_host, num_players, VERSION,       sprintf(data,"%s|%d|%s|%s|%d|%d|%ld", settings.meta_host, num_players, VERSION,


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

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:36