--- deliantra/server/common/recipe.C 2006/09/03 00:18:40 1.3 +++ deliantra/server/common/recipe.C 2006/09/03 14:33:48 1.4 @@ -83,11 +83,11 @@ if (find_archetype(rp->arch_name[i]) != NULL) { artifact *art = locate_recipe_artifact(rp, i); if (!art && strcmp(rp->title, "NONE") != 0) { - LOG(llevError,"\nWARNING: Formula %s of %s has no artifact.\n", rp->arch_name[i], rp->title); + LOG(llevError,"\nWARNING: Formula %s of %s has no artifact.\n", rp->arch_name[i], &rp->title); result = 0; } } else { - LOG(llevError,"\nWARNING: Can't find archetype %s for formula %s\n", rp->arch_name[i], rp->title); + LOG(llevError,"\nWARNING: Can't find archetype %s for formula %s\n", rp->arch_name[i], &rp->title); result = 0; } } @@ -209,7 +209,7 @@ if(check->index==formula->index) { LOG(llevError," ERROR: On %d ingred list: ", numb); LOG(llevError, "Formulae [%s] of %s and [%s] of %s have matching index id (%d)\n", - formula->arch_name[0],formula->title,check->arch_name[0],check->title,formula->index); + formula->arch_name[0],&formula->title,check->arch_name[0],&check->title,formula->index); } numb++; } @@ -240,15 +240,15 @@ if(find_archetype(string)!=NULL) { art = locate_recipe_artifact(formula, i); if (!art && strcmp(formula->title,"NONE")) - LOG(llevError,"Formula %s has no artifact\n",formula->title); + LOG(llevError,"Formula %s has no artifact\n",&formula->title); else { if(strcmp(formula->title,"NONE")) - sprintf(buf,"%s of %s",string,formula->title); + sprintf(buf,"%s of %s",string,&formula->title); else sprintf(buf,"%s",string); fprintf(logfile,"%-30s(%d) bookchance %3d ",buf,formula->index, formula->chance); - fprintf(logfile,"skill %s",formula->skill); + fprintf(logfile,"skill %s",&formula->skill); fprintf(logfile,"\n"); if (formula->ingred !=NULL) { int nval=0,tval=0; @@ -262,15 +262,15 @@ if(tval!=formula->index) fprintf(logfile, "WARNING:ingredient list and formula values not equal.\n"); } if (formula->skill != NULL) - fprintf(logfile, "\tSkill Required: %s", formula->skill); + fprintf(logfile, "\tSkill Required: %s", &formula->skill); if (formula->cauldron != NULL) - fprintf(logfile, "\tCauldron: %s\n", formula->cauldron); + fprintf(logfile, "\tCauldron: %s\n", &formula->cauldron); fprintf(logfile, "\tDifficulty: %d\t Exp: %d\n", formula->diff, formula->exp); } } else LOG(llevError,"Can't find archetype:%s for formula %s\n", string, - formula->title); + &formula->title); } } fprintf(logfile,"\n"); @@ -436,15 +436,15 @@ if ((at = find_archetype (string)) != NULL) { art = locate_recipe_artifact (formula, i); if (!art && strcmp (formula->title,"NONE")) - LOG (llevError, "Formula %s has no artifact\n", formula->title); + LOG (llevError, "Formula %s has no artifact\n", &formula->title); else { if (! strcmp (formula->title, "NONE")) sprintf (buf, "%s", string); else - sprintf (buf, "%s of %s", string, formula->title); + sprintf (buf, "%s of %s", string, &formula->title); fprintf (logfile, "\n%-40s bookchance %3d skill %s\n", - buf, formula->chance, formula->skill); + buf, formula->chance, &(formula->skill)); if (formula->ingred !=NULL) { tcost = 0; @@ -488,7 +488,7 @@ } else LOG(llevError, "Can't find archetype:%s for formula %s\n", string, - formula->title); + &formula->title); } } fprintf (logfile,"\n");