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:
d29f002
)
use t->backwards not t->seg->tr_backwards (which may not yet be set) when doing need_...
author
ian
<ian>
Sun, 24 Aug 2008 22:53:58 +0000
(22:53 +0000)
committer
ian
<ian>
Sun, 24 Aug 2008 22:53:58 +0000
(22:53 +0000)
hostside/safety.c
patch
|
blob
|
history
diff --git
a/hostside/safety.c
b/hostside/safety.c
index 4c77c643073659be7ec77191745d2afa68051575..bb3d2ed48d0767fdc619bb33b5be7cbabcda8c9f 100644
(file)
--- a/
hostside/safety.c
+++ b/
hostside/safety.c
@@
-631,7
+631,7
@@
static int fdet_nextseg(TrackLocation *t, TrackAdvanceContext *c,
}
if (u->elapsed < MARGIN_POLARISETIME) {
- u->need_polarise |= (t->seg->seg_inverted ^ t->
seg->tr_
backwards ^
+ u->need_polarise |= (t->seg->seg_inverted ^ t->backwards ^
u->train_polarity_inverted);
} else {
u->walk_compute_polarise &= u->need_polarise;