summaryrefslogtreecommitdiff
path: root/src-13_searchlights-with-plut-gen-furn.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2023-12-31 22:19:58 -0800
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2023-12-31 22:19:58 -0800
commit02e9386b2a6648958aeba57dab8f7cbcbf11706f (patch)
tree4a779c9ce0524175b5de94ee6ed77f7f93818e64 /src-13_searchlights-with-plut-gen-furn.patch
parentUpdated to 0.5.1 (diff)
downloadcataclysm-bn-02e9386b2a6648958aeba57dab8f7cbcbf11706f.tar.xz
Fix military searchlights not working with plutonium generator furniture.
Add missing roasted walnuts to expanded fmc broker patch.
Diffstat (limited to 'src-13_searchlights-with-plut-gen-furn.patch')
-rw-r--r--src-13_searchlights-with-plut-gen-furn.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/src-13_searchlights-with-plut-gen-furn.patch b/src-13_searchlights-with-plut-gen-furn.patch
new file mode 100644
index 0000000..d18ec30
--- /dev/null
+++ b/src-13_searchlights-with-plut-gen-furn.patch
@@ -0,0 +1,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;
+ }
+ }