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:
0fc4318
)
check initialisation
author
ian
<ian>
Sun, 13 Apr 2008 21:55:21 +0000
(21:55 +0000)
committer
ian
<ian>
Sun, 13 Apr 2008 21:55:21 +0000
(21:55 +0000)
hostside/TODO
patch
|
blob
|
history
hostside/record.c
patch
|
blob
|
history
hostside/resolve.c
patch
|
blob
|
history
diff --git
a/hostside/TODO
b/hostside/TODO
index 8d7b95967bb41a3dfbb1f18c823bfbfe2d5cd98b..f3aaccf602451b6364d2a4c3d144bbe2a5301402 100644
(file)
--- a/
hostside/TODO
+++ b/
hostside/TODO
@@
-1,7
+1,3
@@
-before can test
- commands for speed manager
- check that everything in Train and Segment is init'd
-
dunno but maybe before can test
wiring to gui display
diff --git
a/hostside/record.c
b/hostside/record.c
index b3b508f86e6856feed5967ae5c31f347e41ed695..0bd150b733686f31439a6c115045cdb21a87d3e3 100644
(file)
--- a/
hostside/record.c
+++ b/
hostside/record.c
@@
-287,6
+287,7
@@
static void alloc(void) {
tra->pname= *trap= pname;
tra->addr= -1;
tra->foredetect= 0;
+ tra->backwards= 0;
}
}
@@
-294,7
+295,9
@@
static void alloc(void) {
if (phase)
FOR_SEG {
seg->owner= 0;
+ seg->seg_inverted= 0;
seg->movposcomb= -1;
+ seg->moving= 0;
seg->i= segi;
}
diff --git
a/hostside/resolve.c
b/hostside/resolve.c
index c527bd8218a72882386e76bd07d3fc3706449b5c..14f8aeb35a227cb8bbcba0d35a8e3a0ebb6cab74 100644
(file)
--- a/
hostside/resolve.c
+++ b/
hostside/resolve.c
@@
-327,6
+327,7
@@
int resolve_complete(void) {
}
FOR_TRAIN(t,NOOP,NOOP) {
+ t->speed= 0;
if (t->resolution == RR_E)
t->backwards= 0;
}
@@
-336,6
+337,9
@@
int resolve_complete(void) {
return -1;
}
+ FOR_TRAIN(t,NOOP,NOOP)
+ speedmanager_reset_train(t);
+
return 0;
}