Difference for socket/request.c from version 1.38 to 1.39


version 1.38 version 1.39
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_init_c =   * static char *rcsid_init_c =
  *    "$Id: request.c,v 1.38 2002/05/31 04:18:39 mwedel Exp $";   *    "$Id: request.c,v 1.39 2002/06/07 07:00:45 mwedel Exp $";
  */   */
   
 /*  /*
Line 1491
 
Line 1491
     mx = ns->mapx;      mx = ns->mapx;
     my = ns->mapy;      my = ns->mapy;
   
       if (ns->mapmode == Map1aCmd) {
    mx += MAX_HEAD_OFFSET;
    my += MAX_HEAD_OFFSET;
       }
   
     /* the x and y here are coordinates for the new map, i.e. if we moved      /* the x and y here are coordinates for the new map, i.e. if we moved
      (dx,dy), newmap[x][y] = oldmap[x-dx][y-dy] */       * (dx,dy), newmap[x][y] = oldmap[x-dx][y-dy].  For this reason,
        * if the destination x or y coordinate is outside the viewable
        * area, we clear the values - otherwise, the old values
        * are preserved, and the check_head thinks it needs to clear them.
        */
     for(x=0; x<mx; x++) {      for(x=0; x<mx; x++) {
  for(y=0; y<my; y++) {   for(y=0; y<my; y++) {
      if (x+dx < 0 || x+dx >= mx || y+dy < 0 || y+dy >= my) {       if ((x+dx) < 0 || x >= ns->mapx || (y+dy) < 0 || y >= ns->mapy) {
  memset(&(newmap.cells[x][y]), 0, sizeof(struct MapCell));   memset(&(newmap.cells[x][y]), 0, sizeof(struct MapCell));
      }       }
      else {       else {


Legend:
line(s) removed in v.1.38 
line(s) changed
 line(s) added in v.1.39

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