From 7db38c2969bae2990285011e0032825685105ff7 Mon Sep 17 00:00:00 2001
From: Chaosvolt <chaosvolt@users.noreply.github.com>
Date: Sat, 16 Sep 2023 21:06:16 -0500
Subject: [PATCH] Fix burnt vegetation hiding deep pits under ash piles (#3163)

---
 src/map_extras.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/map_extras.cpp b/src/map_extras.cpp
index 4c5f383e6c43..2e54398fbd91 100644
--- a/src/map_extras.cpp
+++ b/src/map_extras.cpp
@@ -2140,13 +2140,16 @@ static void burned_ground_parser( map &m, const tripoint &loc )
         while( m.is_bashable( loc ) ) { // one is not enough
             m.destroy( loc, true );
         }
-        if( one_in( 5 ) && !tr.has_flag( flag_LIQUID ) ) {
-            m.spawn_item( loc, itype_ash, 1, rng( 1, 10 ) );
+        if( m.ter( loc ) == t_pit ) {
+            m.ter_set( loc, t_pit_shallow );
         }
     } else if( ter_furn_has_flag( tr, fid, TFLAG_FLAMMABLE_ASH ) ) {
         while( m.is_bashable( loc ) ) {
             m.destroy( loc, true );
         }
+        if( m.ter( loc ) == t_pit ) {
+            m.ter_set( loc, t_pit_shallow );
+        }
         m.furn_set( loc, f_ash );
     }