Skip to content

Commit

Permalink
Astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ifreund committed Apr 13, 2019
1 parent 7f00850 commit 1eeb6d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/activity_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2680,7 +2680,8 @@ void activity_handlers::craft_do_turn( player_activity *act, player *p )
// Must ensure >= 1 so we don't divide by 0;
const double base_total_moves = std::max( 1, rec.batch_time( craft->charges, 1.0f, 0 ) );
// Current expected total moves, includes crafting speed modifiers and assistants
const double cur_total_moves = std::max( 1, rec.batch_time( craft->charges, crafting_speed, assistants ) );
const double cur_total_moves = std::max( 1, rec.batch_time( craft->charges, crafting_speed,
assistants ) );
// Delta progress in moves adjusted for current crafting speed
const double delta_progress = p->get_moves() * base_total_moves / cur_total_moves;
// Current progress in moves
Expand Down

0 comments on commit 1eeb6d5

Please sign in to comment.