Begin decomposing cond magic numbers.
This commit is contained in:
parent
29672a6447
commit
1d41d9a2f8
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue