Difference for server/main.c from version 1.51 to 1.52


version 1.51 version 1.52
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_main_c =   * static char *rcsid_main_c =
  *    "$Id: main.c,v 1.51 2001/11/28 04:44:42 michtoen Exp $";   *    "$Id: main.c,v 1.52 2001/12/04 03:49:18 michtoen Exp $";
  */   */
   
 /*  /*
Line 348
 
Line 348
     GlobalEvent(&CFP);      GlobalEvent(&CFP);
 #endif  #endif
   
   
     newmap->players++;      newmap->players++;
     newmap->timeout=0;      newmap->timeout=0;
     op->enemy = NULL;      op->enemy = NULL;
Line 390
 
Line 391
      * Do this after the player is on the new map - otherwise the force swap of the       * Do this after the player is on the new map - otherwise the force swap of the
      * old map does not work.       * old map does not work.
      */       */
     if (oldmap && oldmap != newmap) {      if (oldmap != newmap) {
           /* we are really on a new map. tell it the client */
           if(op->contr->socket.ext2) /* send mapstats cmd to ext2 clients */
               send_mapstats_cmd(op, newmap);
   
           if (oldmap) /* adjust old map */
           {
  oldmap->players--;   oldmap->players--;
  if (oldmap->players <= 0) { /* can be less than zero due to errors in tracking this */  
               if (oldmap->players <= 0) /* can be less than zero due to errors in tracking this */
      set_map_timeout(oldmap);       set_map_timeout(oldmap);
  }   }
     }      }


Legend:
line(s) removed in v.1.51 
line(s) changed
 line(s) added in v.1.52

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