mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-02 10:48:04 +00:00
fixed the map not being generated far enough in non-std geometries after Teleport (and other orbs)
This commit is contained in:
7
orbs.cpp
7
orbs.cpp
@@ -536,8 +536,7 @@ void teleportTo(cell *dest) {
|
|||||||
drainOrb(itOrbTeleport);
|
drainOrb(itOrbTeleport);
|
||||||
movecost(cwt.c, dest);
|
movecost(cwt.c, dest);
|
||||||
playerMoveEffects(cwt.c, dest);
|
playerMoveEffects(cwt.c, dest);
|
||||||
for(int i=9; i>=0; i--)
|
afterplayermoved();
|
||||||
setdist(dest, i, NULL);
|
|
||||||
bfs();
|
bfs();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@@ -552,9 +551,7 @@ void teleportTo(cell *dest) {
|
|||||||
addMessage(XLAT("You teleport to a new location!"));
|
addMessage(XLAT("You teleport to a new location!"));
|
||||||
mirror::destroyAll();
|
mirror::destroyAll();
|
||||||
|
|
||||||
for(int i=9; i>=0; i--)
|
afterplayermoved();
|
||||||
setdist(cwt.c, i, NULL);
|
|
||||||
|
|
||||||
bfs();
|
bfs();
|
||||||
|
|
||||||
sword::reset();
|
sword::reset();
|
||||||
|
Reference in New Issue
Block a user