val = actor->get_effective_prop(prop); max_val = actor->get_effective_prop(prop_max);
if (hit != actor->was_hit() || pois != actor->get_flag(Obj_flags::poisoned) || prot != actor->get_flag(Obj_flags::protection)) { Rectangle r = get_rect(); gwin->add_dirty(r); hit = actor->was_hit(); pois = actor->get_flag(Obj_flags::poisoned); prot = actor->get_flag(Obj_flags::protection); r = get_rect(); gwin->add_dirty(r); }
void Stat_bar::update_widget(){	if (val != actor->get_effective_prop(prop) || max_val != actor->get_effective_prop(prop_max))		gwin->add_dirty(get_rect());	val = actor->get_effective_prop(prop);	max_val = actor->get_effective_prop(prop_max);}