chiark / gitweb /
really stop computing polarity when applicable
authorian <ian>
Sat, 24 May 2008 00:32:36 +0000 (00:32 +0000)
committerian <ian>
Sat, 24 May 2008 00:32:36 +0000 (00:32 +0000)
hostside/safety.c

index 1bdfb184790149470904772bccc925e724269667..6b9ca7922871fcf0f898fa3949df641a1959e9c7 100644 (file)
@@ -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;
     }