1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 15:40:26 +00:00

rogueviz::staircase:: disabled high precision in web

This commit is contained in:
Zeno Rogue 2018-09-06 00:48:33 +02:00
parent f8d2b3308b
commit a06f9dfc12

View File

@ -104,9 +104,14 @@ void make_texture() {
int savetex;
#if ISWEB
int prec = 1;
int maxr = 100;
#else
int prec = 4;
int maxr = 1000;
#endif
bool on;
@ -208,7 +213,9 @@ void showMenu() {
dialog::addItem(XLAT("disable menu"), SDLK_ESCAPE);
dialog::addBoolItem(XLAT("low quality"), prec == 1, '1');
dialog::addBoolItem(XLAT("medium quality"), prec == 2, '2');
#if !ISWEB
dialog::addBoolItem(XLAT("high quality"), prec == 4, '3');
#endif
dialog::addItem(XLAT("take me back"), 'q');
dialog::display();
@ -273,10 +280,12 @@ void showMenu() {
prec = 2, maxr = 300;
make_staircase();
}
#if !ISWEB
else if(uni == '3') {
prec = 4, maxr = 1000;
make_staircase();
}
#endif
else if(uni == 'q') {
ctick = 0;
rug::close();