From 279f4fa0a04aa6d04b8cd7a24d9993a97aa9803b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 2 Jan 2019 16:22:06 +0100 Subject: [PATCH] press '0' to exit the Tutorial --- quit.cpp | 1 + tour.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/quit.cpp b/quit.cpp index fd0a4b57..daf15aa9 100644 --- a/quit.cpp +++ b/quit.cpp @@ -427,6 +427,7 @@ void showMission() { dialog::addItem(XLAT("next slide"), SDLK_RETURN); dialog::addItem(XLAT("previous slide"), SDLK_BACKSPACE); dialog::addItem(XLAT("list of slides"), '9'); + dialog::addItem(XLAT("exit the Tutorial"), '0'); } else dialog::addBreak(200); diff --git a/tour.cpp b/tour.cpp index 30419e3e..bed7ca6f 100644 --- a/tour.cpp +++ b/tour.cpp @@ -248,6 +248,11 @@ bool handleKeyTour(int sym, int uni) { pushScreen(ss::showMenu); return true; } + if(NUMBERKEY == '0') { + tour::start(); + pushScreen(showStartMenu); + return true; + } return false; }