Re: Act.informative.c

From: Sammy (samedi@clark.net)
Date: 07/23/96


On Tue, 23 Jul 1996, Adam Days wrote:

> These are the three things I'm using for the life bar.
> GET_HPR(ch) = (GET_MAX_HIT(ch) / 50)
> then,
> ASTERISK(ch) = (GET_HIT(ch) / GET_HPR(ch))
> Now shouldn't those work?
> Why wouuld a lower level character make it crash, is it because of their
> lower hit points?

If their max hp is less than 25 then GET_HPR(ch) is probably rounding 
down to 0, so ASTERISK(ch) is attempting to divide by 0.  THis is a bad 
thing :)

Sam



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