Difference for server/init.c from version 1.54 to 1.55


version 1.54 version 1.55
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_init_c =   * static char *rcsid_init_c =
  *   "$Id: init.c,v 1.54 2004/02/04 07:46:12 tanner Exp $";   *   "$Id: init.c,v 1.55 2004/05/08 13:38:05 ryo_saeba Exp $";
  */   */
   
 /*  /*
Line 598
 
Line 598
      ", %d is invalid\n", val);       ", %d is invalid\n", val);
      else       else
  settings.set_friendly_fire = val;    settings.set_friendly_fire = val;
       } else if ( !strcasecmp( buf, "armor_max_enchant" ) ) {
           int max_e = atoi( cp );
           if ( max_e <= 0 )
               LOG( llevError, "load_settings: armor_max_enchant is %d\n", max_e );
           else
               settings.armor_max_enchant = max_e;
       } else if ( !strcasecmp( buf, "armor_weight_reduction" ) ) {
           int wr = atoi( cp );
           if ( wr < 0 )
               LOG( llevError, "load_settings: armor_weight_reduction is %d\n", wr );
           else
               settings.armor_weight_reduction = wr;
       } else if ( !strcasecmp( buf, "armor_weight_linear" ) ) {
        if (!strcasecmp(cp, "on") || !strcasecmp(cp, "true")) {
    settings.armor_weight_linear=TRUE;
        } else if (!strcasecmp(cp, "off") || !strcasecmp(cp, "false")) {
    settings.armor_weight_linear=FALSE;
        } else {
    LOG(llevError, "load_settings: unknown value for armor_weight_linear: %s\n", cp);
           }
   
       } else if ( !strcasecmp( buf, "armor_speed_improvement" ) ) {
           int wr = atoi( cp );
           if ( wr < 0 )
               LOG( llevError, "load_settings: armor_speed_improvement is %d\n", wr );
           else
               settings.armor_speed_improvement = wr;
       } else if ( !strcasecmp( buf, "armor_speed_linear" ) ) {
        if (!strcasecmp(cp, "on") || !strcasecmp(cp, "true")) {
    settings.armor_speed_linear = TRUE;
        } else if (!strcasecmp(cp, "off") || !strcasecmp(cp, "false")) {
    settings.armor_speed_linear = FALSE;
        } else {
    LOG(llevError, "load_settings: unknown value for armor_speed_linear: %s\n", cp);
           }
   
  } else {   } else {
      LOG(llevError,"Unknown value in settings file: %s\n", buf);       LOG(llevError,"Unknown value in settings file: %s\n", buf);
  }   }


Legend:
line(s) removed in v.1.54 
line(s) changed
 line(s) added in v.1.55

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