From 4ff3d497b6c3ca7f638eb2c8fb077bfbde50aeb6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 27 Jun 2017 13:23:30 -0400 Subject: [PATCH] This looks like it gets the terminators right. --- newdungeon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.31.1