Skip to content

Commit

Permalink
Make sure it's floating-point division
Browse files Browse the repository at this point in the history
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
  • Loading branch information
actual-nh and anothersimulacrum authored Mar 16, 2021
1 parent a851293 commit e11fcc4
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 @@ -5696,7 +5696,7 @@ void Character::try_reduce_weariness( const float exertion )
const int bmr = base_bmr();
// 1/120 of whichever's bigger
if( bmr > reduction ) {
reduction = std::floor( bmr * recovery_mult * weary.low_activity_ticks / 6 );
reduction = std::floor( bmr * recovery_mult * weary.low_activity_ticks / 6.0f );
} else {
reduction = std::ceil( reduction * recovery_mult * weary.low_activity_ticks / 6 );
}
Expand Down

0 comments on commit e11fcc4

Please sign in to comment.