--- deliantra/server/socket/request.C 2006/08/18 02:23:28 1.4 +++ deliantra/server/socket/request.C 2006/08/19 02:57:05 1.5 @@ -1,6 +1,6 @@ /* * static char *rcsid_init_c = - * "$Id: request.C,v 1.4 2006/08/18 02:23:28 root Exp $"; + * "$Id: request.C,v 1.5 2006/08/19 02:57:05 root Exp $"; */ /* @@ -1835,9 +1835,9 @@ // send hp information, if applicable if (object *op = GET_MAP_FACE_OBJ (m, nx, ny, 0)) if (op->stats.maxhp > 0 - && (unsigned)op->stats.maxhp + 1 > (unsigned)op->stats.hp + && (unsigned)op->stats.maxhp > (unsigned)op->stats.hp && IS_LIVE (op)) - stat_hp = 255 - op->stats.hp * 255 / op->stats.maxhp; + stat_hp = 255 - (op->stats.hp * 255 + 254) / op->stats.maxhp; if (lastcell.stat_hp != stat_hp) {