From: Eric S. Raymond Date: Tue, 27 Jun 2017 17:23:30 +0000 (-0400) Subject: This looks like it gets the terminators right. X-Git-Tag: 1.1~79 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=4ff3d497b6c3ca7f638eb2c8fb077bfbde50aeb6 This looks like it gets the terminators right. --- diff --git a/newdungeon.py b/newdungeon.py index 6f95bb4..52c34e5 100755 --- 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 + elif travel: + travel[-1] *= -1 while rule: travel.append(rule.pop(0) + newloc * 1000) travel[-1] *= -1