From c2d7b0c011efb4ddcacaaf4c527f5ebfebc1e822 Mon Sep 17 00:00:00 2001
From: Zeno Rogue <zeno@attnam.com>
Date: Thu, 28 Jun 2018 14:14:18 +0200
Subject: [PATCH] fixed the map not being generated far enough in non-std
 geometries after Teleport (and other orbs)

---
 orbs.cpp | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/orbs.cpp b/orbs.cpp
index aa058b50..95f57d94 100644
--- a/orbs.cpp
+++ b/orbs.cpp
@@ -536,8 +536,7 @@ void teleportTo(cell *dest) {
       drainOrb(itOrbTeleport);
       movecost(cwt.c, dest);
       playerMoveEffects(cwt.c, dest);
-      for(int i=9; i>=0; i--)
-        setdist(dest, i, NULL);
+      afterplayermoved();
       bfs();
       }
     return;
@@ -552,9 +551,7 @@ void teleportTo(cell *dest) {
   addMessage(XLAT("You teleport to a new location!"));
   mirror::destroyAll();
 
-  for(int i=9; i>=0; i--)
-    setdist(cwt.c, i, NULL);
-
+  afterplayermoved();
   bfs();
   
   sword::reset();