This looks like it gets the terminators right.

This commit is contained in:
Eric S. Raymond 2017-06-27 13:23:30 -04:00
parent d53bc1c54c
commit 4ff3d497b6

View file

@ -598,7 +598,7 @@ def buildtravel(locs, objs, voc):
if loc != oldloc: if loc != oldloc:
tkey.append(len(travel)) tkey.append(len(travel))
oldloc = loc oldloc = loc
if travel: elif travel:
travel[-1] *= -1 travel[-1] *= -1
while rule: while rule:
travel.append(rule.pop(0) + newloc * 1000) travel.append(rule.pop(0) + newloc * 1000)