summaryrefslogtreecommitdiff
path: root/src-14_fix-npc_melee-calculations.patch
blob: ea9898969e97aefe8925ecfc81a14d5b9e3269ee (plain)
1
2
3
4
5
6
7
8
9
10
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;
     }