From 6c0256782fdcf2ed1054c0ed25188244b42fa96c Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Fri, 24 Mar 2023 14:19:36 -0700 Subject: [PATCH] NSNavAI: Hack to fix navigation for monster_barney in c1a0d --- src/shared/NSNavAI.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/NSNavAI.qc b/src/shared/NSNavAI.qc index e3880899..5f57ba5a 100644 --- a/src/shared/NSNavAI.qc +++ b/src/shared/NSNavAI.qc @@ -124,14 +124,14 @@ NSNavAI::CheckRoute(void) } /* check if we can reach the node after the current one */ - if (m_iCurNode > 0) { + if (m_iCurNode > 0 && m_iNodes > 3) { /* HACK: only bother when we have more than 3 nodes in the path... this works around an issue in c1a0d I'm unsure about */ int iNextNode = (m_iCurNode - 1); vector vecNextNode = m_pRoute[iNextNode].dest; tracebox(origin, mins, maxs, vecNextNode, MOVE_NORMAL, this); /* it's accessible */ - if (trace_fraction == 1.0f) { + if (!trace_startsolid && trace_fraction == 1.0f) { evenpos = vecNextNode; m_iCurNode = iNextNode; NSLog("^2%s::^3CheckRoute^7: skipping to next node %i at '%v'", \