Skip to content

Commit

Permalink
Fixing formatting using AStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
KarateSnoopy committed Mar 27, 2019
1 parent 10efe23 commit 0d08bec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/item_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2648,7 +2648,7 @@ void item_group::debug_spawn()
uilist menu;
menu.text = _( "Test which group?" );
for( size_t i = 0; i < groups.size(); i++ ) {
menu.entries.emplace_back( static_cast<int>(i), true, -2, groups[i] );
menu.entries.emplace_back( static_cast<int>( i ), true, -2, groups[i] );
}
while( true ) {
menu.query();
Expand All @@ -2674,7 +2674,7 @@ void item_group::debug_spawn()
for( const auto &e : itemnames2 ) {
std::ostringstream buffer;
buffer << e.first << " x " << e.second << "\n";
menu2.entries.emplace_back( static_cast<int>(menu2.entries.size()), true, -2, buffer.str() );
menu2.entries.emplace_back( static_cast<int>( menu2.entries.size() ), true, -2, buffer.str() );
}
menu2.query();
}
Expand Down
7 changes: 4 additions & 3 deletions src/lightmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ void map::generate_lightmap( const int zlev )
continue;
}
if( vp.has_feature( VPFLAG_CARGO ) && !vp.has_feature( "COVERED" ) ) {
add_light_from_items( pp, v->get_items( static_cast<int>(p) ).begin(), v->get_items( static_cast<int>(p) ).end() );
add_light_from_items( pp, v->get_items( static_cast<int>( p ) ).begin(),
v->get_items( static_cast<int>( p ) ).end() );
}
}
}
Expand Down Expand Up @@ -1139,10 +1140,10 @@ void map::build_seen_cache( const tripoint &origin, const int target_z )
seen_cache[mirror_pos.x][mirror_pos.y] < LIGHT_TRANSPARENCY_SOLID + 0.1 ) {
continue;
} else if( !vp.info().has_flag( "CAMERA_CONTROL" ) ) {
mirrors.emplace_back( static_cast<int>(vp.part_index()) );
mirrors.emplace_back( static_cast<int>( vp.part_index() ) );
} else {
if( square_dist( origin, mirror_pos ) <= 1 && veh->camera_on ) {
cam_control = static_cast<int>(vp.part_index());
cam_control = static_cast<int>( vp.part_index() );
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/trait_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void trait_group::debug_spawn()
uilist menu;
menu.text = _( "Test which group?" );
for( size_t i = 0; i < groups.size(); i++ ) {
menu.entries.emplace_back( static_cast<int>(i), true, -2, groups[i].str() );
menu.entries.emplace_back( static_cast<int>( i ), true, -2, groups[i].str() );
}
while( true ) {
menu.query();
Expand All @@ -108,7 +108,7 @@ void trait_group::debug_spawn()
for( const auto &e : traitnames2 ) {
std::ostringstream buffer;
buffer << e.first << " x " << e.second << "\n";
menu2.entries.emplace_back( static_cast<int>(menu2.entries.size()), true, -2, buffer.str() );
menu2.entries.emplace_back( static_cast<int>( menu2.entries.size() ), true, -2, buffer.str() );
}
menu2.query();
}
Expand Down

0 comments on commit 0d08bec

Please sign in to comment.