Skip to content

Commit

Permalink
Changed anonymous tripoint operations to 'typed' ones
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikLundell authored and anothersimulacrum committed Jun 16, 2024
1 parent 19bbca7 commit e1f5521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/activity_item_handling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3518,8 +3518,8 @@ int get_auto_consume_moves( Character &you, const bool food )

if( best_comestible ) {
//The moves it takes you to walk there and back.
int consume_moves = 2 * you.run_cost( 100, false ) * std::max( rl_dist( you.pos(),
best_comestible.position() ), 1 );
int consume_moves = 2 * you.run_cost( 100, false ) * std::max( rl_dist( you.pos_bub(),
best_comestible.pos_bub() ), 1 );
consume_moves += to_moves<int>( you.get_consume_time( *best_comestible ) );

you.consume( best_comestible );
Expand Down

0 comments on commit e1f5521

Please sign in to comment.