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

CF: apply -a bugfix



Hi,

I had some time to spent :-) So, here is bug fix for the apply -a "flaw".
Apply the following change to server/apply.c/apply_special():

  for(tmp=who->inv;tmp!=NULL;tmp=tmp->below)
    if(tmp->type==op->type&&QUERY_FLAG(tmp, FLAG_APPLIED)&&tmp!=op)
      if(tmp->type==RING&&!i)
        i=1;
      else if(apply_special(who,tmp,0))
                                   ^^
        return 0;
  if(op->nrof > 1)
    tmp = get_split_ob(op,op->nrof - 1);
  else

In my source tree this is at line 2178, and I don't think I changed
anything compared to the standard 0.94.1 apply.c.

Christian
[to unsubscribe etc., send mail to crossfire-request@ifi.uio.no]