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:
0be9932
)
do not clear det_expected in segments belonging to other trains
author
ian
<ian>
Mon, 9 Jun 2008 00:35:41 +0000
(
00:35
+0000)
committer
ian
<ian>
Mon, 9 Jun 2008 00:35:41 +0000
(
00:35
+0000)
hostside/safety.c
patch
|
blob
|
history
diff --git
a/hostside/safety.c
b/hostside/safety.c
index 198971d72ab06dbb1d8e3474b0dc98e1f75c269f..0b2a8d46ee0650f2073a00efa89d3d02c0f26c20 100644
(file)
--- a/
hostside/safety.c
+++ b/
hostside/safety.c
@@
-720,7
+720,8
@@
ErrorCode predict(Train *tra, struct timeval tnow, unsigned flags,
.pname : "");
FOR_SEG {
- seg->det_expected= 0;
+ if (!seg->owner || seg->owner == u.train)
+ seg->det_expected= 0;
seg->now_present= seg->pred_present=
seg->pred_vacated= seg->will_polarise= 0;
}