chiark
/
gitweb
/
~ijackson
/
trains.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66b8ae6
)
really stop computing polarity when applicable
author
ian
<ian>
Sat, 24 May 2008 00:32:36 +0000
(
00:32
+0000)
committer
ian
<ian>
Sat, 24 May 2008 00:32:36 +0000
(
00:32
+0000)
hostside/safety.c
patch
|
blob
|
history
diff --git
a/hostside/safety.c
b/hostside/safety.c
index 1bdfb184790149470904772bccc925e724269667..6b9ca7922871fcf0f898fa3949df641a1959e9c7 100644
(file)
--- 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;
}