mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-06 16:52:59 +00:00
mission screen reshown after a bad move in 'see how it ended'
This commit is contained in:
@@ -75,6 +75,10 @@ movedir vectodir(const hyperpoint& P) {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void remission() {
|
||||||
|
if(!canmove && (cmode & sm::NORMAL)) showMissionScreen();
|
||||||
|
}
|
||||||
|
|
||||||
void movepckeydir(int d) {
|
void movepckeydir(int d) {
|
||||||
DEBB(DF_GRAPH, (debugfile,"movepckeydir\n"));
|
DEBB(DF_GRAPH, (debugfile,"movepckeydir\n"));
|
||||||
// EUCLIDEAN
|
// EUCLIDEAN
|
||||||
@@ -82,7 +86,7 @@ void movepckeydir(int d) {
|
|||||||
movedir md =
|
movedir md =
|
||||||
vectodir(spin(-d * M_PI/4) * tC0(pushone()));
|
vectodir(spin(-d * M_PI/4) * tC0(pushone()));
|
||||||
|
|
||||||
movepcto(md);
|
if(!canmove) movepcto(md), remission(); else movepcto(md);
|
||||||
}
|
}
|
||||||
|
|
||||||
void calcMousedest() {
|
void calcMousedest() {
|
||||||
@@ -122,7 +126,7 @@ void calcMousedest() {
|
|||||||
|
|
||||||
void mousemovement() {
|
void mousemovement() {
|
||||||
calcMousedest();
|
calcMousedest();
|
||||||
movepcto(mousedest);
|
if(!canmove) movepcto(mousedest), remission(); else movepcto(mousedest);
|
||||||
lmouseover = NULL;
|
lmouseover = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user