projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d53bc1c
)
This looks like it gets the terminators right.
author
Eric S. Raymond
<esr@thyrsus.com>
Tue, 27 Jun 2017 17:23:30 +0000
(13:23 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Tue, 27 Jun 2017 17:23:30 +0000
(13:23 -0400)
newdungeon.py
patch
|
blob
|
history
diff --git
a/newdungeon.py
b/newdungeon.py
index 6f95bb4232277da9b650112c761fa31184dd8529..52c34e5ff5913e70135fb1a94f07831696c0acea 100755
(executable)
--- a/
newdungeon.py
+++ b/
newdungeon.py
@@
-598,8
+598,8
@@
def buildtravel(locs, objs, voc):
if loc != oldloc:
tkey.append(len(travel))
oldloc = loc
-
if travel:
-
travel[-1] *= -1
+
el
if travel:
+ travel[-1] *= -1
while rule:
travel.append(rule.pop(0) + newloc * 1000)
travel[-1] *= -1