mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-31 05:24:07 +00:00
Orb of Recall now recalls the original orientation
This commit is contained in:
parent
9a35342625
commit
0f84ec8dc8
14
game.cpp
14
game.cpp
@ -6622,6 +6622,7 @@ EX void placeItems(int qty, eItem it) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX cellwalker recallCell;
|
EX cellwalker recallCell;
|
||||||
|
EX display_data recallDisplay;
|
||||||
|
|
||||||
EX bool activateRecall() {
|
EX bool activateRecall() {
|
||||||
if(!recallCell.at) {
|
if(!recallCell.at) {
|
||||||
@ -6645,7 +6646,13 @@ EX bool activateRecall() {
|
|||||||
cwt = recallCell;
|
cwt = recallCell;
|
||||||
recallCell.at = NULL;
|
recallCell.at = NULL;
|
||||||
flipplayer = true;
|
flipplayer = true;
|
||||||
fullcenter();
|
|
||||||
|
centerover = recallDisplay.precise_center;
|
||||||
|
View = recallDisplay.view_matrix;
|
||||||
|
// local_perspective = recallDisplay.local_perspective;
|
||||||
|
gmatrix = recallDisplay.cellmatrices;
|
||||||
|
gmatrix0 = recallDisplay.old_cellmatrices;
|
||||||
|
|
||||||
makeEmpty(cwt.at);
|
makeEmpty(cwt.at);
|
||||||
forCellEx(c2, cwt.at)
|
forCellEx(c2, cwt.at)
|
||||||
if(c2->monst != moMutant)
|
if(c2->monst != moMutant)
|
||||||
@ -6660,7 +6667,10 @@ EX bool activateRecall() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX void saveRecall(cellwalker cw2) {
|
EX void saveRecall(cellwalker cw2) {
|
||||||
if(!recallCell.at) recallCell = cw2;
|
if(!recallCell.at) {
|
||||||
|
recallCell = cw2;
|
||||||
|
recallDisplay = *current_display;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EX void activateSafety(eLand l) {
|
EX void activateSafety(eLand l) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user