1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-30 21:42:59 +00:00

fixed some bugs with which_copy -- now should consistently use the View coordinate system

This commit is contained in:
Zeno Rogue
2021-05-30 13:00:42 +02:00
parent 855d2f66c3
commit 95b4ad28b9
4 changed files with 34 additions and 15 deletions

View File

@@ -623,7 +623,7 @@ EX void teleportTo(cell *dest) {
cell *from = cwt.at;
movecost(from, dest, 1);
playerMoveEffects(movei(cwt.at, dest, TELEPORT));
current_display->which_copy = unshift(ggmatrix(dest));
fix_whichcopy(dest);
cwt.at = dest; cwt.spin = hrand(dest->type); flipplayer = !!(hrand(2));
drainOrb(itOrbTeleport);
@@ -713,7 +713,7 @@ EX bool jumpTo(orbAction a, cell *dest, eItem byWhat, int bonuskill IS(0), eMons
changes.commit();
current_display->which_copy = unshift(ggmatrix(dest));
fix_whichcopy(dest);
countLocalTreasure();
for(int i=9; i>=0; i--)