Skip to content

Commit

Permalink
Backporting CleverRaven#49799 Fix healthy rounding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg committed Aug 14, 2021
1 parent ea26b17 commit 46bea9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5507,7 +5507,7 @@ void Character::update_health( int external_modifiers )

// And healthy_mod decays over time.
// Slowly near 0, but it's hard to overpower it near +/-100
set_healthy_mod( std::round( get_healthy_mod() * 0.95f ) );
set_healthy_mod( roll_remainder( get_healthy_mod() * 0.95f ) );

add_msg_debug( "Health: %d, Health mod: %d", get_healthy(), get_healthy_mod() );
}
Expand Down

0 comments on commit 46bea9c

Please sign in to comment.