Skip to content

Commit

Permalink
Merge pull request CleverRaven#41741 from Menschheit/Test
Browse files Browse the repository at this point in the history
Set transparency cache to dirty after removing intransparent fields
  • Loading branch information
ZhilkinSerg authored Jul 1, 2020
2 parents 9419cac + 99a47b9 commit 43fc2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5344,7 +5344,7 @@ void map::remove_field( const tripoint &p, const field_type_id &field_to_remove
p.y / SEEX ) * MAPSIZE ) ) );
}
const auto &fdata = field_to_remove.obj();
if( fdata.is_transparent() ) {
if( !fdata.is_transparent() ) {
set_transparency_cache_dirty( p.z );
}
if( fdata.is_dangerous() ) {
Expand Down

0 comments on commit 43fc2d0

Please sign in to comment.