From 98a6255ca2dc73ae4a05e81a441a39c55597f492 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 3 May 2018 13:14:43 +0200 Subject: [PATCH] ESC clears the viewdistance option --- control.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/control.cpp b/control.cpp index 62cc0c17..9475f271 100644 --- a/control.cpp +++ b/control.cpp @@ -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);