with this change the green point-gain numbers from a drain attack will
show only if Show Combat is enabled.
This commit is contained in:
Eric S. Raymond 2008-02-10 00:44:07 +00:00
parent 51a1d83cb6
commit d0a30839ed

View file

@ -1046,7 +1046,7 @@ attack::attack(game_display& gui, const gamemap& map,
if(amount_drained > 0) {
char buf[50];
snprintf(buf,sizeof(buf),"%d",amount_drained);
if (update_display_){
if (update_display_ && preferences::show_combat()){
gui_.float_label(a_->first,buf,0,255,0);
}
a_->second.heal(amount_drained);