if (width > 0) gwin->get_win()->fill8(colour, width, 3, px, py);
if (actor->was_hit()) { s->paint_rle_outline(gwin->get_win()->get_ib8(), px, py, gwin->get_hit_pixel()); } else if (actor->get_flag(Obj_flags::poisoned)) { s->paint_rle_outline(gwin->get_win()->get_ib8(), px, py, gwin->get_poison_pixel()); } else if (actor->get_flag(Obj_flags::protection)) { s->paint_rle_outline(gwin->get_win()->get_ib8(), px, py, gwin->get_protect_pixel()); }
void Stat_bar::paint	(	Game_window *gwin	){	Gump_button::paint(gwin);	prev = actor->get_property(prop);	max_prev = actor->get_property(prop_max);	int width =  (prev * 32) / (max_prev);	if (width > 0)	{		int px = x;		int py = y;		if (parent)		{			px += parent->get_x();			py += parent->get_y();		}		if (width > 0) gwin->get_win()->fill8(colour, width, 3, px, py);	}}