Oversight in handler.c

From: Donald Louis Karpovich (dlk2@Ra.MsState.Edu)
Date: 04/22/96


It would seem that in handler.c in the function affect_total, if a +CHA
item is worn, there is no check to see if the modified stat goes beyond
the maximum limit.

An obvious fix would be to simply add the following line :

  GET_CHA(ch) = MAX(0, MIN(GET_CHA(ch), i));


Also, what is the purpose of the maxabil variable in the function
affect_modify ?  I took it out and it did nothing.  Other than the line
that initializes the variable, it is not used anywhere in the function.
Perhaps I'm missing something.

****************************************************************************
Donald Karpovich           *  I am myself alone
****************************  Realise I never need to use No-one
dlk2@ra.msstate.edu        *  Money, Power, Holy Roads,
74547.2546@compuserve.com  *  Freedom puts my faith in None of the above
****************************                        -Duran Duran (1993)
                           *************************************************



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