Difference for random_maps/rogue_layout.c from version 1.8 to 1.9


version 1.8 version 1.9
Line 59
 
Line 59
     for(i=1;i<xsize-1;i++)      for(i=1;i<xsize-1;i++)
       for(j=1;j<ysize-1;j++)        for(j=1;j<ysize-1;j++)
         maze[i][j]=0;          maze[i][j]=0;
     maze[i/2][j/2]='>';      maze[(xsize-1)/2][(ysize-1)/2]='>';
     maze[i/2][j/2+1]='<';      maze[(xsize-1)/2][(ysize-1)/2+1]='<';
     return maze;      return maze;
   }    }
   
Line 80
 
Line 80
     for(i=1;i<xsize-1;i++)      for(i=1;i<xsize-1;i++)
       for(j=1;j<ysize-1;j++)        for(j=1;j<ysize-1;j++)
         maze[i][j]=0;          maze[i][j]=0;
     maze[i/2][j/2]='>';      maze[(xsize-1)/2][(ysize-1)/2]='>';
     maze[i/2][j/2+1]='<';      maze[(xsize-1)/2][(ysize-1)/2+1]='<';
     free(Rooms);      free(Rooms);
     return maze;      return maze;
   }    }
Line 215
 
Line 215
       break;        break;
     default:      default:
       making_circle = ((RANDOM()%3 == 0)? 1:0);        making_circle = ((RANDOM()%3 == 0)? 1:0);
         break;
       }
   
       if(walk->sx < walk->sy)        if(walk->sx < walk->sy)
         R = walk->sx/2;          R = walk->sx/2;
       else        else
         R = walk->sy/2;          R = walk->sy/2;
     }  
   
   /* enscribe a rectangle */    /* enscribe a rectangle */
     for(i=walk->ax;i<walk->zx;i++)      for(i=walk->ax;i<walk->zx;i++)


Legend:
line(s) removed in v.1.8 
line(s) changed
 line(s) added in v.1.9

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