Skip to content

Commit

Permalink
astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredavidbelanger committed Aug 24, 2019
1 parent 490046a commit a795374
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/activity_item_handling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1399,15 +1399,15 @@ static cata::optional<tripoint> find_best_refuel_spot( const tripoint &center )
const tripoint center_abs = g->m.getabs( center );

const std::unordered_set<tripoint> &tiles_abs_unordered =
mgr.get_near( zone_loot_wood, center_abs, PICKUP_RANGE );
mgr.get_near( zone_loot_wood, center_abs, PICKUP_RANGE );
const std::vector<tripoint> &tiles_abs =
get_sorted_tiles_by_distance( center_abs, tiles_abs_unordered );
get_sorted_tiles_by_distance( center_abs, tiles_abs_unordered );

for( const tripoint &tile_abs : tiles_abs ) {
const tripoint tile = g->m.getlocal( tile_abs );
if( g->m.has_items( tile ) &&
g->m.accessible_items( tile ) &&
g->m.clear_path( center, tile, PICKUP_RANGE, 1, 100 ) ) {
g->m.accessible_items( tile ) &&
g->m.clear_path( center, tile, PICKUP_RANGE, 1, 100 ) ) {
return tile;
}
}
Expand Down

0 comments on commit a795374

Please sign in to comment.