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:
1b84521
)
prefer low-numbered movposcombs
author
ian
<ian>
Sun, 20 Apr 2008 10:48:45 +0000
(10:48 +0000)
committer
ian
<ian>
Sun, 20 Apr 2008 10:48:45 +0000
(10:48 +0000)
hostside/movpos.c
patch
|
blob
|
history
diff --git
a/hostside/movpos.c
b/hostside/movpos.c
index 98c3dc7e485b5dd0bd61fd4bc700171602896a5c..e883968cce5ba238ced2805db3f3bd9c663153c0 100644
(file)
--- a/
hostside/movpos.c
+++ b/
hostside/movpos.c
@@
-522,7
+522,7
@@
movpos_change_bysegs(Segment *back, Segment *move, Segment *fwd,
//fprintf(stderr," several feats\n");
/* we have to search for the one which is least effort, then */
tchanges= movpos__evaluate_target(move, tcomb);
- if (tchanges >
bestchanges)
+ if (tchanges >
= bestchanges) /* prefer low-numbered movposcombs */
continue;
} else {
tchanges= 1;