1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-21 03:09:36 +00:00

tour:: with LEGAL::NONE, '1' and '2' keys do not work

This commit is contained in:
Zeno Rogue 2021-03-31 14:37:40 +02:00
parent 7a887ac7c1
commit 35414a6ff6

View File

@ -225,8 +225,8 @@ bool handleKeyTour(int sym, int uni) {
if(inhelp) slidehelp(); if(inhelp) slidehelp();
return true; return true;
} }
if(NUMBERKEY == '1' || NUMBERKEY == '2') { int legal = slides[currentslide].flags & 7;
int legal = slides[currentslide].flags & 7; if((NUMBERKEY == '1' || NUMBERKEY == '2') && (legal != LEGAL::NONE)) {
if(legal == LEGAL::SPECIAL) { if(legal == LEGAL::SPECIAL) {
presentation(pmGeometrySpecial); presentation(pmGeometrySpecial);