summaryrefslogtreecommitdiff
path: root/src-13_searchlights-with-plut-gen-furn.patch
blob: d18ec30603cf09f363e3eaf09ae4c02c9e0b7140 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/src/monattack.cpp
+++ b/src/monattack.cpp
@@ -3552,7 +3552,8 @@
         for( int x = zposx - 24; x < zposx + 24; x++ ) {
             for( int y = zposy - 24; y < zposy + 24; y++ ) {
                 tripoint dest( x, y, z->posz() );
-                if( g->m.ter( dest ) == ter_str_id( "t_plut_generator" ) ) {
+                if( ( g->m.ter( dest ) == ter_str_id( "t_plut_generator" ) ) ||
+                    ( g->m.furn( dest ) == furn_str_id( "f_grid_plut_generator" ) ) ) {
                     generator_ok = true;
                 }
             }