1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-29 19:40:35 +00:00

ESC clears the viewdistance option

This commit is contained in:
Zeno Rogue 2018-05-03 13:14:43 +02:00
parent 86077105b1
commit 98a6255ca2

View File

@ -373,8 +373,12 @@ void handleKeyNormal(int sym, int uni) {
else restartGame();
}
if(sym == SDLK_ESCAPE)
showMissionScreen();
if(sym == SDLK_ESCAPE) {
if(viewdists)
viewdists = false;
else
showMissionScreen();
}
if(sym == SDLK_F10) {
if(needConfirmation()) pushScreen(showMission);