Percentage Loads

From: Chuck Reed (creed@EXIT1.I-55.COM)
Date: 02/04/98


Hi.  I have come accross a problem in zedit with percentage loads.  It
seems that when I give a mobile an object, any percentage I put in shifts
to 100%.  I looked in zedit.c and everything looks right to me as the other
cases are working right here:

       case 'G':
       case 'E':
       case 'M':
       case 'O':
       case 'P':
         pos = atoi(arg);
           if (pos == 100) {
             OLC_CMD(d).arg4 = 0;
             zedit_disp_menu(d);
           }
           else if (pos > 0 && pos < 100) {
             OLC_CMD(d).arg4 = 101 - pos;
            zedit_disp_menu(d);
           }
           else
             send_to_char("Give a number between 1 and 100. Try again: ",
d->character);
         break;

Any ideas?

Chuck


     +------------------------------------------------------------+
     | 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