Difference for random_maps/square_spiral.c from version 1.5 to 1.6


version 1.5 version 1.6
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_map_c =   * static char *rcsid_map_c =
  *   "$Id: square_spiral.c,v 1.5 2001/10/07 06:45:40 mwedel Exp $";   *   "$Id: square_spiral.c,v 1.6 2002/09/06 04:44:46 mwedel Exp $";
  */   */
   
 /*  /*
Line 100
 
Line 100
     maze[tx-1][ty]='D';/* make a doorway out of this layer */      maze[tx-1][ty]='D';/* make a doorway out of this layer */
   
     /* walk left until we find the top-left corner */      /* walk left until we find the top-left corner */
     while(maze[tx-1][ty]) tx--;      while((tx>0) && maze[tx-1][ty]) tx--;
   
     make_wall(maze,tx-1,ty,0);     /* make a horizontal wall with a door */      make_wall(maze,tx-1,ty,0);     /* make a horizontal wall with a door */
   
     /* walk down until we find the bottom-left corner */      /* walk down until we find the bottom-left corner */
     while(maze[tx][ty+1]) ty++;      while(((ty+1) < ysize) && maze[tx][ty+1] ) ty++;
   
     make_wall(maze,tx,ty+1,1);    /* make a vertical wall with a door */      make_wall(maze,tx,ty+1,1);    /* make a vertical wall with a door */
   
     /* walk rightuntil we find the bottom-right corner */      /* walk rightuntil we find the bottom-right corner */
     while(maze[tx+1][ty]) tx++;      while(((tx + 1) < xsize) && maze[tx+1][ty]) tx++;
          
     make_wall(maze,tx+1,ty,0);   /* make a horizontal wall with a door */      make_wall(maze,tx+1,ty,0);   /* make a horizontal wall with a door */
     tx++;  /* set up for next layer. */      tx++;  /* set up for next layer. */


Legend:
line(s) removed in v.1.5 
line(s) changed
 line(s) added in v.1.6

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