Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CF: pray/claw/magic xp





	Well, as of CF0.92.4 '#' comments entered the skill_params
	file...unfortuneately read_skill_params(), which reinitializes
	the skills array -- skills[], fails when it sees comment
	lines in the file skill_params.

	The change in skill_params file is new as of 0.92.4, so there
	is still one more bug to find (??), ill continue on looking 
	tonight. The short patch below should be applied to skill_util.c,
	or alternatively, edit lib/skill_params so that all '#' lines
	are removed.

						-b.t.


*** dk	Wed May  1 03:19:07 1996
--- skill_util.c	Wed May  1 03:19:33 1996
***************
*** 477,486 ****
--- 477,488 ----
      }
   
    while(!feof(skill_params))
      {
          fgets(skill_name,49,skill_params);
+ 	if(*skill_name=='#') continue;
+ 
          skillindex=lookup_skill_by_name(skill_name);
          if(skillindex == -1) {
              LOG(llevError,"\nskill_params has unrecognized skill: %s",skill_name);
              continue;
          }