mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
tour:: next_slide function
This commit is contained in:
parent
3410a20275
commit
48260b781e
14
tour.cpp
14
tour.cpp
@ -206,12 +206,8 @@ void return_geometry() {
|
||||
addMessage(XLAT("Returned to your game."));
|
||||
}
|
||||
|
||||
bool handleKeyTour(int sym, int uni) {
|
||||
if(!tour::on) return false;
|
||||
if(!(cmode & sm::DOTOUR)) return false;
|
||||
bool inhelp = cmode & sm::HELP;
|
||||
EX bool next_slide() {
|
||||
flagtype flags = slides[currentslide].flags;
|
||||
if((sym == SDLK_RETURN || sym == SDLK_KP_ENTER) && (!inhelp || (flags & QUICKSKIP))) {
|
||||
popScreenAll();
|
||||
if(gamestack::pushed()) {
|
||||
return_geometry();
|
||||
@ -225,6 +221,14 @@ bool handleKeyTour(int sym, int uni) {
|
||||
slidehelp();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool handleKeyTour(int sym, int uni) {
|
||||
if(!tour::on) return false;
|
||||
if(!(cmode & sm::DOTOUR)) return false;
|
||||
bool inhelp = cmode & sm::HELP;
|
||||
flagtype flags = slides[currentslide].flags;
|
||||
if((sym == SDLK_RETURN || sym == SDLK_KP_ENTER) && (!inhelp || (flags & QUICKSKIP)))
|
||||
return next_slide();
|
||||
if(sym == SDLK_BACKSPACE) {
|
||||
if(gamestack::pushed()) {
|
||||
gamestack::pop();
|
||||
|
Loading…
Reference in New Issue
Block a user