Skip to content

Commit

Permalink
Amend #34234 - floating point (#34242)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMurkin authored and ZhilkinSerg committed Sep 26, 2019
1 parent d10735f commit a03f527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/activity_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ void activity_handlers::fill_liquid_do_turn( player_activity *act, player *p )
break;
}

static const units::volume volume_per_second = units::from_liter( 4 / 6 );
static const units::volume volume_per_second = units::from_liter( 4.0F / 6.0F );
const int charges_per_second = std::max( 1, liquid.charges_per_volume( volume_per_second ) );
liquid.charges = std::min( charges_per_second, liquid.charges );
const int original_charges = liquid.charges;
Expand Down

0 comments on commit a03f527

Please sign in to comment.