From 020e9286859925c2fe4c18565a70b1b1fce82558 Mon Sep 17 00:00:00 2001 From: wiseoldman95 Date: Wed, 6 May 2015 06:46:10 +0300 Subject: PF - Fixed mobs not reaching leaning player --- src/Mobs/Path.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/Mobs/Path.cpp') diff --git a/src/Mobs/Path.cpp b/src/Mobs/Path.cpp index 8701dad10..a0b83f593 100644 --- a/src/Mobs/Path.cpp +++ b/src/Mobs/Path.cpp @@ -182,7 +182,13 @@ bool cPath::Step_Internal() } // Path found. - if (CurrentCell->m_Location == m_Destination) + if ( + (CurrentCell->m_Location == m_Destination + Vector3i(0, 0, 1)) || + (CurrentCell->m_Location == m_Destination + Vector3i(1, 0, 0)) || + (CurrentCell->m_Location == m_Destination + Vector3i(-1, 0, 0)) || + (CurrentCell->m_Location == m_Destination + Vector3i(0, 0, -1)) || + (CurrentCell->m_Location == m_Destination + Vector3i(0, -1, 0)) + ) { do { -- cgit v1.2.3