Skip to content

Commit

Permalink
Weird demanded change + add_roofs bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikLundell committed May 3, 2024
1 parent 9df6eed commit 70631f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8058,7 +8058,7 @@ void map::shift( const point &sp )
loadn( point( gridx, gridy ), true );

for( int gridz = zmin; gridz <= zmax; gridz++ ) {
loaded_grids.emplace_back( tripoint( gridx, gridy, gridz ) );
loaded_grids.emplace_back( gridx, gridy, gridz );
}
}
}
Expand Down Expand Up @@ -8694,7 +8694,7 @@ void map::add_roofs( const tripoint &grid )
for( int x = 0; x < SEEX; x++ ) {
for( int y = 0; y < SEEY; y++ ) {
const ter_id ter_here = sub_here->get_ter( { x, y } );
if( !ter_here->has_flag( "EMPTY_SPACE" ) ) {
if( ter_here.id() != ter_t_open_air ) {
continue;
}

Expand Down

0 comments on commit 70631f7

Please sign in to comment.