1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-11 09:50:34 +00:00

mission screen reshown after a bad move in 'see how it ended'

This commit is contained in:
Zeno Rogue 2017-09-30 11:36:01 +02:00
parent 9d78b7096d
commit d7cc886197

View File

@ -75,6 +75,10 @@ movedir vectodir(const hyperpoint& P) {
return res;
}
void remission() {
if(!canmove && (cmode & sm::NORMAL)) showMissionScreen();
}
void movepckeydir(int d) {
DEBB(DF_GRAPH, (debugfile,"movepckeydir\n"));
// EUCLIDEAN
@ -82,7 +86,7 @@ void movepckeydir(int d) {
movedir md =
vectodir(spin(-d * M_PI/4) * tC0(pushone()));
movepcto(md);
if(!canmove) movepcto(md), remission(); else movepcto(md);
}
void calcMousedest() {
@ -122,7 +126,7 @@ void calcMousedest() {
void mousemovement() {
calcMousedest();
movepcto(mousedest);
if(!canmove) movepcto(mousedest), remission(); else movepcto(mousedest);
lmouseover = NULL;
}