From 70631f7256851ad18a95212c73b3d58a53aa07b6 Mon Sep 17 00:00:00 2001
From: PatrikLundell <j.patrik.r.lundell@gmail.com>
Date: Fri, 3 May 2024 18:14:42 +0200
Subject: [PATCH] Weird demanded change + add_roofs bugfix

---
 src/map.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/map.cpp b/src/map.cpp
index 709f83d29f361..5c1f593066f1d 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -8058,7 +8058,7 @@ void map::shift( const point &sp )
                 loadn( point( gridx, gridy ), true );
 
                 for( int gridz = zmin; gridz <= zmax; gridz++ ) {
-                    loaded_grids.emplace_back( tripoint( gridx, gridy, gridz ) );
+                    loaded_grids.emplace_back( gridx, gridy, gridz );
                 }
             }
         }
@@ -8694,7 +8694,7 @@ void map::add_roofs( const tripoint &grid )
     for( int x = 0; x < SEEX; x++ ) {
         for( int y = 0; y < SEEY; y++ ) {
             const ter_id ter_here = sub_here->get_ter( { x, y } );
-            if( !ter_here->has_flag( "EMPTY_SPACE" ) ) {
+            if( ter_here.id() != ter_t_open_air ) {
                 continue;
             }