Skip to content

Commit

Permalink
Remove magic roof addition on manual construction
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikLundell committed Nov 15, 2024
1 parent dca38e5 commit dbb9868
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 dbb9868

Please sign in to comment.