summaryrefslogtreecommitdiff
path: root/src-14_fix-npc_melee-calculations.patch
diff options
context:
space:
mode:
Diffstat (limited to 'src-14_fix-npc_melee-calculations.patch')
-rw-r--r--src-14_fix-npc_melee-calculations.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/src-14_fix-npc_melee-calculations.patch b/src-14_fix-npc_melee-calculations.patch
new file mode 100644
index 0000000..ea98989
--- /dev/null
+++ b/src-14_fix-npc_melee-calculations.patch
@@ -0,0 +1,11 @@
+--- a/src/npcmove.cpp
++++ b/src/npcmove.cpp
+@@ -1409,7 +1409,7 @@
+ return npc_reload;
+ }
+
+- if( dist == 1 && same_z ) {
++ if( dist <= 1 && same_z ) {
+ add_msg( m_debug, "%s is trying a melee attack", disp_name() );
+ return npc_melee;
+ }