Skip to content

Commit

Permalink
Merge pull request #77873 from PatrikLundell/no_roof
Browse files Browse the repository at this point in the history
Remove magic roof addition on manual construction
  • Loading branch information
Maleclypse authored Nov 16, 2024
2 parents 046f9c0 + dbb9868 commit 22cdb84
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/construction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1398,16 +1398,6 @@ void complete_construction( Character *you )
here.furn_set( terp, furn_str_id( built.post_terrain ) );
} else {
here.ter_set( terp, ter_str_id( built.post_terrain ) );
// Make a roof if constructed terrain should have it and it's an open space
if( construct::check_up_OK( terp ) ) {
const int_id<ter_t> post_terrain = ter_id( built.post_terrain );
if( post_terrain->roof ) {
const tripoint_bub_ms top = terp + tripoint_above;
if( here.ter( top )->has_flag( "EMPTY_SPACE" ) ) {
here.ter_set( top, ter_id( post_terrain->roof ) );
}
}
}
}
}

Expand Down

0 comments on commit 22cdb84

Please sign in to comment.