Difference for random_maps/exit.c from version 1.10 to 1.11


version 1.10 version 1.11
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_exit_c =   * static char *rcsid_exit_c =
  *   "$Id: exit.c,v 1.10 2001/02/11 09:12:13 cvs Exp $";   *   "$Id: exit.c,v 1.11 2001/04/23 08:01:19 mardahl Exp $";
  */   */
   
 /*  /*
Line 208
 
Line 208
         insert_ob_in_map(random_sign,map,NULL);          insert_ob_in_map(random_sign,map,NULL);
       }        }
     }      }
       /* Block the exit so things don't get dumped on top of it. */
       SET_FLAG(the_exit_up,FLAG_NO_PASS);
     insert_ob_in_map(the_exit_up,map,NULL);      insert_ob_in_map(the_exit_up,map,NULL);
     maze[the_exit_up->x][the_exit_up->y]='<';      maze[the_exit_up->x][the_exit_up->y]='<';
     /* set the starting x,y for this map */      /* set the starting x,y for this map */
Line 270
 
Line 272
         the_exit_back->stats.sp = the_exit_down->y;          the_exit_back->stats.sp = the_exit_down->y;
         the_exit_back->x = EXIT_X(new_map->map_object);          the_exit_back->x = EXIT_X(new_map->map_object);
         the_exit_back->y = EXIT_Y(new_map->map_object);          the_exit_back->y = EXIT_Y(new_map->map_object);
   
           /* Block the exit so things don't get dumped on top of it. */
           SET_FLAG(the_exit_back,FLAG_NO_PASS);
         insert_ob_in_map(the_exit_back,new_map,NULL);          insert_ob_in_map(the_exit_back,new_map,NULL);
  set_map_timeout(new_map);   /* So it gets swapped out */   set_map_timeout(new_map);   /* So it gets swapped out */
       }        }
       else        else
         the_exit_down->slaying = add_string("/!");          the_exit_down->slaying = add_string("/!");
         /* Block the exit so things don't get dumped on top of it. */
         SET_FLAG(the_exit_down,FLAG_NO_PASS);
       insert_ob_in_map(the_exit_down,map,NULL);        insert_ob_in_map(the_exit_down,map,NULL);
       maze[the_exit_down->x][the_exit_down->y]='>';        maze[the_exit_down->x][the_exit_down->y]='>';
     }      }
   }         }    
          
 }  }
   
   
   
   /* this function unblocks the exits.  We blocked them to
      keep things from being dumped on them during the other
      phases of random map generation. */
   void unblock_exits(mapstruct *map, char **maze, RMParms *RP) {
     int i=1,j=1;
     object *walk;
    
     /* clear the down exit */
     find_in_layout(1,'>',&i,&j,maze,RP);
     if(i!=-1)  /* found the down exit */
       for(walk=get_map_ob(map,i,j);walk!=NULL;walk=walk->above) {
         if(QUERY_FLAG(walk,FLAG_NO_PASS)) {
           CLEAR_FLAG(walk,FLAG_NO_PASS);
           update_object(walk);
         }
       }
    
    
     /* clear the up exit */
     find_in_layout(1,'<',&i,&j,maze,RP);
     if(i!=-1)  /* found the down exit */
       for(walk=get_map_ob(map,i,j);walk!=NULL;walk=walk->above) {
         if(QUERY_FLAG(walk,FLAG_NO_PASS)) {
           CLEAR_FLAG(walk,FLAG_NO_PASS);
           update_object(walk);
         }
       }
   
   }
   


Legend:
line(s) removed in v.1.10 
line(s) changed
 line(s) added in v.1.11

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