Skip to content

Commit

Permalink
Removed extra conversion to local coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikLundell authored and anothersimulacrum committed Jun 16, 2024
1 parent be7a566 commit 19bbca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/activity_item_handling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3519,7 +3519,7 @@ 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(),
here.getlocal( best_comestible.position() ) ), 1 );
best_comestible.position() ), 1 );
consume_moves += to_moves<int>( you.get_consume_time( *best_comestible ) );

you.consume( best_comestible );
Expand Down

0 comments on commit 19bbca7

Please sign in to comment.