From 74b6a849f61d7e9f4e30c466c0f57a5ba2a3474e Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 24 May 2008 00:32:36 +0000 Subject: [PATCH] really stop computing polarity when applicable --- hostside/safety.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hostside/safety.c b/hostside/safety.c index 1bdfb18..6b9ca79 100644 --- a/hostside/safety.c +++ b/hostside/safety.c @@ -643,7 +643,7 @@ static int fdet_nextseg(TrackLocation *t, TrackAdvanceContext *c, } if (u->know_best_polarity && !t->seg->i->invertible && - u->noninv_tally[ t->backwards ^ u->train_polarity_inverted ^ 1]) { + u->train_polarity_inverted != t->backwards) { /* incompatible, stop now */ u->walk_compute_polarise= 0; } -- 2.30.2