Difference for server/gods.c from version 1.14 to 1.15


version 1.14 version 1.15
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_gods_c =   * static char *rcsid_gods_c =
  *   "$Id: gods.c,v 1.14 2001/01/01 23:09:32 avogl Exp $";   *   "$Id: gods.c,v 1.15 2001/01/09 23:50:37 avogl Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 144
 
Line 144
      int sp;  /*  spell index */       int sp;  /*  spell index */
   
      become_follower(pl,&altar->other_arch->clone);       become_follower(pl,&altar->other_arch->clone);
   
      /* Forget all the special spells from your former God */  
      for(i=0;i<pl->contr->nrofknownspells;i++)  
  /* Can this ever be false? */  
  if((sp=pl->contr->known_spells[i])>0) {  
      if(spells[sp].cleric && spells[sp].books == 0) {  
  pl->contr->nrofknownspells--;  
  pl->contr->known_spells[i]=  
      pl->contr->known_spells[pl->contr->nrofknownspells];  
  new_draw_info_format(NDI_UNIQUE|NDI_NAVY,0,pl,  
  "You lose your knowledge of %s!",spells[sp].name);  
  /* I think we can just do an i-- here and still  
  * have it work - i=0 is probably excessive */  
  i=0;  
    
      } /* if cleric spell not normally found */  
  } /* if ... */  
   
  } /* If angry... switching gods */   } /* If angry... switching gods */
     } /* If prayed at altar to other god */      } /* If prayed at altar to other god */
 #endif  #endif


Legend:
line(s) removed in v.1.14 
line(s) changed
 line(s) added in v.1.15

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