Difference for server/gods.c from version 1.47 to 1.48


version 1.47 version 1.48
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_gods_c =   * static char *rcsid_gods_c =
  *   "$Id: gods.c,v 1.47 2005/08/10 13:38:31 ryo_saeba Exp $";   *   "$Id: gods.c,v 1.48 2005/08/12 08:18:59 ryo_saeba Exp $";
  */   */
   
 /*  /*
Line 45
 
Line 45
 /**  /**
  * Returns the id of specified god.   * Returns the id of specified god.
  */   */
 int lookup_god_by_name(char *name) {  int lookup_god_by_name(const char *name) {
     int godnr=-1,nmlen = strlen(name);      int godnr=-1,nmlen = strlen(name);
    
     if(name && strcmp(name,"none")) {       if(name && strcmp(name,"none")) {
Line 61
 
Line 61
 /**  /**
  * Returns pointer to specified god's object through pntr_to_god_obj..   * Returns pointer to specified god's object through pntr_to_god_obj..
  */   */
 object *find_god(char *name) {  object *find_god(const char *name) {
     object *god=NULL;      object *god=NULL;
   
     if(name) {       if(name) {
Line 80
 
Line 80
  * In the case of an NPC, if they have no god, we give them a random one. -b.t.   * In the case of an NPC, if they have no god, we give them a random one. -b.t.
  */   */
   
 char *determine_god(object *op) {  const char *determine_god(object *op) {
     int godnr = -1;      int godnr = -1;
   
     /* spells */      /* spells */
Line 555
 
Line 555
  * string is the string to print out.   * string is the string to print out.
  */   */
   
 int worship_forbids_use (object *op, object *exp_obj, uint32 flag, char *string) {  int worship_forbids_use (object *op, object *exp_obj, uint32 flag, const char *string) {
   
   if(QUERY_FLAG(&op->arch->clone,flag))    if(QUERY_FLAG(&op->arch->clone,flag))
     if(QUERY_FLAG(op,flag)!=QUERY_FLAG(exp_obj,flag)) {      if(QUERY_FLAG(op,flag)!=QUERY_FLAG(exp_obj,flag)) {


Legend:
line(s) removed in v.1.47 
line(s) changed
 line(s) added in v.1.48

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