Skip to content

Commit

Permalink
style(autofix.ci): automated formatting (attempt 2/3)
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Feb 12, 2025
1 parent 11eb35f commit 5ea8b28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,8 @@ bool map::has_adjacent_flags( const tripoint &center, const std::set<std::string
for( const std::string flag_id : ter_flags ) {

Check warning on line 1940 in src/map.cpp

View workflow job for this annotation

GitHub Actions / GCC 12, Ubuntu, Curses

loop variable ‘flag_id’ creates a copy from type ‘const std::string’ {aka ‘const std::__cxx11::basic_string<char>’} [-Wrange-loop-construct]
if( has_flag( flag_id, p )
|| ( flag_id == "WALL" &&
impassable( p ) ) //Here to replicate existing functionality of counting lockers and other impassable furniture
impassable(
p ) ) //Here to replicate existing functionality of counting lockers and other impassable furniture
) {
return true;
}
Expand Down

0 comments on commit 5ea8b28

Please sign in to comment.