Difference for server/gods.c from version 1.51 to 1.52


version 1.51 version 1.52
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_gods_c =   * static char *rcsid_gods_c =
  *   "$Id: gods.c,v 1.51 2005/08/14 18:21:01 akirschbaum Exp $";   *   "$Id: gods.c,v 1.52 2005/08/14 19:06:19 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 95
 
Line 95
   
     if(op->type!= PLAYER && QUERY_FLAG(op,FLAG_ALIVE)) {      if(op->type!= PLAYER && QUERY_FLAG(op,FLAG_ALIVE)) {
    
    /* find a god based on race */
  if(!op->title) {   if(!op->title) {
      if (op->race !=NULL) {       if (op->race !=NULL) {
  godname=get_god_for_race(op->race);   godname=get_god_for_race(op->race);
Line 102
 
Line 103
      op->title = add_string(godname);       op->title = add_string(godname);
  }   }
      }       }
      else {   }
   
    /* find a random god */
    if(!op->title) {
          godlink *gl=first_god;           godlink *gl=first_god;
   
  godnr = rndm(1, gl->id);   godnr = rndm(1, gl->id);
Line 112
 
Line 116
  }   }
  op->title = add_string(gl->name);   op->title = add_string(gl->name);
      }       }
  }  
  return op->title;   return op->title;
     }      }
   


Legend:
line(s) removed in v.1.51 
line(s) changed
 line(s) added in v.1.52

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