From 99a47b91b1c3963e16238b2757e86aa8b9c71038 Mon Sep 17 00:00:00 2001 From: "U-N\\N" Date: Thu, 2 Jul 2020 01:12:48 +0200 Subject: [PATCH] fix transparency --- src/map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map.cpp b/src/map.cpp index cb4ffcf43187a..8a9dc81e0f24d 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -5342,7 +5342,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() ) {