Route_Process: Respect the filter (denylinkflags) (#236)

Originally submitted by CYBERDEViL, only made style changes to fit in with the rest.
This commit is contained in:
Marco Cawthorne 2024-03-08 11:45:50 -08:00 committed by GitHub
parent 1c5e82bec7
commit 57e9276670
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -960,8 +960,10 @@ static qboolean Route_Process(struct routecalc_s *r)
{
struct wpneighbour_s *l = &wp->neighbour[u];
int linkidx = l->node;
float realcost = nodecost[nodeidx] + l->linkcost;
if (l->linkflags & r->denylinkflags)
continue;
#ifdef _DEBUG
if (linkidx < 0 || linkidx >= n->numwaypoints)
{