(svn r21524) -Fix [FS#4302]: Do not apply the last signal red pathfinder penalty when the signal is a path signal.

This commit is contained in:
michi_cc
2010-12-15 14:33:24 +00:00
parent 8326e1d287
commit 789dd1470f
2 changed files with 5 additions and 4 deletions

View File

@@ -469,8 +469,9 @@ static int32 NPFRailPathCost(AyStar *as, AyStarNode *current, OpenListNode *pare
}
}
}
/* Record the state of this signal */
NPFSetFlag(current, NPF_FLAG_LAST_SIGNAL_RED, true);
/* Record the state of this signal. Path signals are assumed to
* be green as the signal state of them has no meaning for this. */
NPFSetFlag(current, NPF_FLAG_LAST_SIGNAL_RED, !IsPbsSignal(sigtype));
} else {
/* Record the state of this signal */
NPFSetFlag(current, NPF_FLAG_LAST_SIGNAL_RED, false);