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:
38bc609
)
actually use FOR_TRAIN initx
author
ian
<ian>
Sun, 16 Mar 2008 22:00:32 +0000
(22:00 +0000)
committer
ian
<ian>
Sun, 16 Mar 2008 22:00:32 +0000
(22:00 +0000)
hostside/safety.h
patch
|
blob
|
history
diff --git
a/hostside/safety.h
b/hostside/safety.h
index df975447bdbabab17b8df287f04b9f39c3ed3e8a..def129d90b46a159281fb160e7b3d7c4257ec7db 100644
(file)
--- a/
hostside/safety.h
+++ b/
hostside/safety.h
@@
-214,7
+214,7
@@
const SegmentLinkInfo *trackloc_segmentlink(const TrackLocation *tloc,
seg##n++, seg++, seg##i++, stepx)
#define FOR_TRAIN(tra, initx, stepx) \
- for (tra##n=0, tra=trains
;
\
+ for (tra##n=0, tra=trains
, initx;
\
tra##n < n_trains; \
tra##n++, tra++, stepx)