Begin decomposing cond magic numbers.

This commit is contained in:
Eric S. Raymond 2017-07-02 10:38:17 -04:00
parent 29672a6447
commit 1d41d9a2f8

View file

@ -716,10 +716,11 @@ def buildtravel(locs, objs):
elif travel:
travel[-1][-1] = not travel[-1][-1]
while rule:
cond = newloc // 1000
travel.append([rule.pop(0),
newloc // 1000,
cond,
newloc % 1000,
(newloc//1000)==100,
cond==100,
False])
travel[-1][-1] = True
return (travel, tkey)