The act.info:look_at_target() fix

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 01/29/98


     have each of the 3 for loop resemble this one:

     for (j = 0; (j < NUM_WEARS) && !found && (i<vnumber); j++)
        {
        if (GET_EQ(ch, j) && CAN_SEE_OBJ(ch, GET_EQ(ch, j)))
         {
         if((desc= find_exdesc(arg, GET_EQ(ch, j)->ex_description)) !=
     NULL)
            {
            i++;
            if(i==vnumber)
               {
               send_to_char(desc, ch);
               found = 1;
               }
            }
         }
        }

     Notice the (i<vnumber) in the for's if-clause
     the i++
     the if(i==vnumber)

     oh, right after the call to generic_find() add:
        if(!(vnumber=get_number(&arg)))
           {
           send_to_char("You do not see that here.\r\n",ch);
           return;
           }

     don't forget:
     int i=0,vnumber=0;

     --Angus


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST