mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-14 16:31:38 +00:00
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