Difference for random_maps/rogue_layout.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 39
 
Line 39
      less than 3x that then hollow things out, stick in       less than 3x that then hollow things out, stick in
      a stairsup and stairs down, and exit */       a stairsup and stairs down, and exit */
   
   if(xsize < 15 || ysize < 15) {    if(xsize < 11 || ysize < 11) {
     for(i=1;i<xsize-1;i++)      for(i=1;i<xsize-1;i++)
       for(i=j;i<ysize-1;j++)        for(j=1;j<ysize-1;j++)
         maze[i][j]=0;          maze[i][j]=0;
     maze[i/2][j/2]='>';      maze[i/2][j/2]='>';
     maze[i/2][j/2+1]='<';      maze[i/2][j/2+1]='<';
Line 60
 
Line 60
     else i++;      else i++;
   }    }
   
     if(i==0) { /* no can do! */
       for(i=1;i<xsize-1;i++)
         for(j=1;j<ysize-1;j++)
           maze[i][j]=0;
       maze[i/2][j/2]='>';
       maze[i/2][j/2+1]='<';
       return maze;
     }
      
    
   /* erase the areas occupied by the rooms */    /* erase the areas occupied by the rooms */
   roguelike_make_rooms(Rooms,maze,options);    roguelike_make_rooms(Rooms,maze,options);
   
Line 74
 
Line 84
   walk--;    walk--;
   maze[walk->x][walk->y] = '>';    maze[walk->x][walk->y] = '>';
      
     /* convert all the '.' to 0, we're through witht he '.' */
     for(i=0;i<xsize;i++)
       for(j=0;j<ysize;j++)
         if(maze[i][j]=='.') maze[i][j]=0;
    
   
   return maze;    return maze;
 }  }
Line 276
 
Line 291
     }      }
   
   }    }
   for(i=0;i<xsize;i++)  
     for(j=0;j<ysize;j++)  
       if(maze[i][j]=='.') maze[i][j]=0;  
 }  }


Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2

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