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:
parent
1c5e82bec7
commit
57e9276670
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue