Skip to content

Commit

Permalink
Appease our clang overlords
Browse files Browse the repository at this point in the history
  • Loading branch information
Procyonae committed Jun 5, 2024
1 parent 069711b commit 6397fb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/overmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5167,7 +5167,7 @@ void overmap::place_roads( const overmap *north, const overmap *east, const over
for( const auto &elem : roads_out ) {
road_points.emplace_back( elem.xy() );
}
if( cities.size() == 0 ) {
if( cities.empty() ) {
// If there's no cities in the overmap chose a random central point that special's road connections should path to
fallback_road_connection_point = point_om_omt( rng( OMAPX / 4, ( 3 * OMAPX ) / 4 ),
rng( OMAPY / 4, ( 3 * OMAPY ) / 4 ) );
Expand Down
2 changes: 1 addition & 1 deletion src/overmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class overmap
bool nullbool = false; // NOLINT(cata-serialize)
point_abs_om loc; // NOLINT(cata-serialize)
// Random point used for special connections if there's no cities on the overmap, joins to all roads_out
std::optional<point_om_omt> fallback_road_connection_point;
std::optional<point_om_omt> fallback_road_connection_point; // NOLINT(cata-serialize)

std::array<map_layer, OVERMAP_LAYERS> layer;
std::unordered_map<tripoint_abs_omt, scent_trace> scents;
Expand Down

0 comments on commit 6397fb1

Please sign in to comment.