1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-23 13:43:19 +00:00

fixed disabling CAP_RUG and CAP_TOUR

This commit is contained in:
Zeno Rogue 2018-05-07 20:09:58 +02:00
parent b6969bca22
commit d0dc017ce3
3 changed files with 7 additions and 1 deletions

View File

@ -281,7 +281,9 @@ bool have_current_settings() {
int modecount = 0;
if(inv::on) modecount++;
if(shmup::on) modecount += 10;
#if CAP_TOUR
if(tour::on) modecount += 10;
#endif
if(chaosmode) modecount += 10;
if(nonbitrunc) modecount += 10;
if(peace::on) modecount += 10;

View File

@ -643,7 +643,9 @@ namespace conformal {
dialog::addBreak(100);
dialog::addItem(XLAT("history mode"), 'a');
#if CAP_RUG
dialog::addItem(XLAT("hypersian rug mode"), 'u');
#endif
dialog::addItem(XLAT("exit this menu"), 'q');
dialog::display();
@ -677,8 +679,10 @@ namespace conformal {
projectionDialog();
else if(uni == 'b')
config_camera_rotation();
#if CAP_RUG
else if(uni == 'u')
pushScreen(rug::show);
#endif
else if(uni == 'l' && pmodel == mdHalfplane)
lower_halfplane = !lower_halfplane;
else if(uni == 'a')

View File

@ -919,11 +919,11 @@ namespace rug {
extern bool rug_perspective;
bool handlekeys(int sym, int uni);
#endif
void addTriangle(rugpoint *t1, rugpoint *t2, rugpoint *t3, ld len = 1);
rugpoint *addRugpoint(hyperpoint h, double dist);
void buildRug();
#endif
}
#define HASLINEVIEW