Difference for server/apply.c from version 1.38 to 1.39


version 1.38 version 1.39
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_apply_c =   * static char *rcsid_apply_c =
  *   "$Id: apply.c,v 1.38 2001/05/29 04:41:53 mwedel Exp $";   *   "$Id: apply.c,v 1.39 2001/06/04 06:41:02 mwedel Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 2479
 
Line 2479
   
   if(m==NULL) return;    if(m==NULL) return;
   
   for(x=0;x<m->mapx;x++)    for(x=0;x<m->map_object->x;x++)
     for(y=0;y<m->mapy;y++)      for(y=0;y<m->map_object->y;y++)
       for(tmp=get_map_ob(m,x,y);tmp!=NULL;tmp=above) {        for(tmp=get_map_ob(m,x,y);tmp!=NULL;tmp=above) {
         above=tmp->above;          above=tmp->above;
   
Line 2514
 
Line 2514
             create_treasure(tmp->randomitems, tmp, GT_APPLY,              create_treasure(tmp->randomitems, tmp, GT_APPLY,
                             m->difficulty,0);                              m->difficulty,0);
       }        }
   for(x=0;x<m->mapx;x++)    for(x=0;x<m->map_object->x;x++)
     for(y=0;y<m->mapy;y++)      for(y=0;y<m->map_object->y;y++)
       for(tmp=get_map_ob(m,x,y);tmp!=NULL;tmp=tmp->above)        for(tmp=get_map_ob(m,x,y);tmp!=NULL;tmp=tmp->above)
  if (tmp->above &&   if (tmp->above &&
             (tmp->type == TRIGGER_BUTTON || tmp->type == TRIGGER_PEDESTAL))              (tmp->type == TRIGGER_BUTTON || tmp->type == TRIGGER_PEDESTAL))


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 17:23