diff --git a/achievement.cpp b/achievement.cpp index a9ef209b..cabf156d 100644 --- a/achievement.cpp +++ b/achievement.cpp @@ -952,12 +952,12 @@ EX void achievement_display() { col /= 10; col *= 0x10101; displayfr(vid.xres/2, vid.yres/4, 2, vid.fsize * 2, achievementMessage[0], col & 0xFFFF00, 8); int w = 2 * vid.fsize; -#if ISMOBILE==0 +#if !ISMOBILE while(w>3 && textwidth(w, achievementMessage[1]) > vid.xres) w--; #endif displayfr(vid.xres/2, vid.yres/4 + vid.fsize*2, 2, w, achievementMessage[1], col, 8); w = vid.fsize; -#if ISMOBILE==0 +#if !ISMOBILE while(w>3 && textwidth(w, achievementMessage[2]) > vid.xres) w--; #endif displayfr(vid.xres/2, vid.yres/4 + vid.fsize*4, 2, w, achievementMessage[2], col, 8); diff --git a/arbitrile.cpp b/arbitrile.cpp index e04dd74c..fe057206 100644 --- a/arbitrile.cpp +++ b/arbitrile.cpp @@ -380,7 +380,7 @@ void connection_debugger() { string cap = its(k) + primes(last.second) + " -> " + its(get<1>(con)) + primes(get<0>(con)) + (get<2>(con) ? " (m) " : ""); dialog::addSelItem(cap, "go", '0' + k); - dialog::add_action([k, last, &sh, con] { + dialog::add_action([k, last, con] { debug_polys.emplace_back(last.first * get_adj(debugged, last.second, k, -1), get<0>(con)); }); @@ -689,4 +689,4 @@ EX void choose() { } EX } -} \ No newline at end of file +} diff --git a/binary-tiling.cpp b/binary-tiling.cpp index 9973519c..8870a5d5 100644 --- a/binary-tiling.cpp +++ b/binary-tiling.cpp @@ -9,11 +9,17 @@ namespace hr { EX namespace bt { -#if CAP_BT /** note: nihsolv and kd3 tilings return bt::in(). They are defined elsewhere, although some of bt:: functions are used for them */ - EX bool in() { return cgflags & qBINARY; } + EX bool in() { +#if CAP_BT + return cgflags & qBINARY; +#else + return false; +#endif + } +#if CAP_BT #if HDR enum bindir { bd_right = 0, diff --git a/complex.cpp b/complex.cpp index 3940d371..15f7b1dc 100644 --- a/complex.cpp +++ b/complex.cpp @@ -3848,12 +3848,12 @@ EX namespace halloween { } int id = hrand(100); if(items[itTreat] == 1) { -#if ISMOBILE==0 +#if !ISMOBILE addMessage(XLAT("Hint: use arrow keys to scroll.")); #endif } else if(items[itTreat] == 2) { -#if ISMOBILE==0 +#if !ISMOBILE addMessage(XLAT("Hint: press 1 2 3 4 to change the projection.")); #endif } diff --git a/complex2.cpp b/complex2.cpp index e861c827..11c490b2 100644 --- a/complex2.cpp +++ b/complex2.cpp @@ -8,7 +8,7 @@ */ #include "hyper.h" -#ifdef CAP_COMPLEX2 +#if CAP_COMPLEX2 namespace hr { diff --git a/config.cpp b/config.cpp index d872ae27..2d3b9a72 100644 --- a/config.cpp +++ b/config.cpp @@ -800,7 +800,7 @@ EX void saveConfig() { fprintf(f, "%s=%s\n", s->name.c_str(), s->save().c_str()); fclose(f); -#if ISMOBILE==0 +#if !ISMOBILE addMessage(s0 + "Configuration saved to: " + conffile); #else addMessage(s0 + "Configuration saved"); @@ -1269,36 +1269,34 @@ EX void configureOther() { // dialog::addBoolItem_action(XLAT("forget faraway cells"), memory_saving_mode, 'y'); - #if CAP_AUDIO - if(CAP_AUDIO) { - dialog::addSelItem(XLAT("background music volume"), its(musicvolume), 'b'); - dialog::add_action([] { - dialog::editNumber(musicvolume, 0, 128, 10, 60, XLAT("background music volume"), ""); - dialog::reaction = [] () { - #if CAP_SDLAUDIO - Mix_VolumeMusic(musicvolume); - #endif - #if ISANDROID - settingsChanged = true; - #endif - }; - dialog::bound_low(0); - dialog::bound_up(MIX_MAX_VOLUME); - }); +#if CAP_AUDIO + dialog::addSelItem(XLAT("background music volume"), its(musicvolume), 'b'); + dialog::add_action([] { + dialog::editNumber(musicvolume, 0, 128, 10, 60, XLAT("background music volume"), ""); + dialog::reaction = [] () { +#if CAP_SDLAUDIO + Mix_VolumeMusic(musicvolume); +#endif +#if ISANDROID + settingsChanged = true; +#endif + }; + dialog::bound_low(0); + dialog::bound_up(MIX_MAX_VOLUME); + }); - dialog::addSelItem(XLAT("sound effects volume"), its(effvolume), 'e'); - dialog::add_action([] { - dialog::editNumber(effvolume, 0, 128, 10, 60, XLAT("sound effects volume"), ""); - dialog::reaction = [] () { - #if ISANDROID - settingsChanged = true; - #endif - }; - dialog::bound_low(0); - dialog::bound_up(MIX_MAX_VOLUME); - }); - } - #endif + dialog::addSelItem(XLAT("sound effects volume"), its(effvolume), 'e'); + dialog::add_action([] { + dialog::editNumber(effvolume, 0, 128, 10, 60, XLAT("sound effects volume"), ""); + dialog::reaction = [] () { +#if ISANDROID + settingsChanged = true; +#endif + }; + dialog::bound_low(0); + dialog::bound_up(MIX_MAX_VOLUME); + }); +#endif menuitem_sightrange('r'); @@ -1317,12 +1315,10 @@ EX void configureInterface() { gamescreen(3); dialog::init(XLAT("interface")); - #if CAP_TRANS - if(CAP_TRANS) { - dialog::addSelItem(XLAT("language"), XLAT("EN"), 'l'); - dialog::add_action_push(selectLanguageScreen); - } - #endif +#if CAP_TRANS + dialog::addSelItem(XLAT("language"), XLAT("EN"), 'l'); + dialog::add_action_push(selectLanguageScreen); +#endif dialog::addSelItem(XLAT("player character"), numplayers() > 1 ? "" : csname(vid.cs), 'g'); dialog::add_action_push(showCustomizeChar); @@ -1642,12 +1638,12 @@ EX void show3D() { gamescreen(0); dialog::init(XLAT("3D configuration")); -#if MAXMDIM >= 4 +#if MAXMDIM >= 4 if(WDIM == 2) { dialog::addBoolItem(XLAT("use the full 3D models"), vid.always3, 'U'); dialog::add_action(geom3::switch_always3); } -#endif +#endif if(vid.use_smart_range == 0 && GDIM == 2) { dialog::addSelItem(XLAT("High detail range"), fts(vid.highdetail), 'n'); dialog::addSelItem(XLAT("Mid detail range"), fts(vid.middetail), 'm'); @@ -1749,12 +1745,12 @@ EX void show3D() { dialog::add_action(geom3::switch_tpp); } -#if MAXMDIM >=4 +#if MAXMDIM >=4 if(WDIM == 2) { dialog::addBoolItem(XLAT("configure FPP automatically"), GDIM == 3, 'F'); dialog::add_action(geom3::switch_fpp); } -#endif +#endif if(0); #if CAP_RUG @@ -2312,11 +2308,9 @@ EX void showSettings() { dialog::addItem(XLAT("colors & aura"), 'c'); dialog::add_action_push(show_color_dialog); -#if CAP_SHMUP - if(CAP_SHMUP && !ISMOBILE) { - dialog::addSelItem(XLAT("keyboard & joysticks"), "", 'k'); - dialog::add_action(multi::configure); - } +#if CAP_SHMUP && !ISMOBILE + dialog::addSelItem(XLAT("keyboard & joysticks"), "", 'k'); + dialog::add_action(multi::configure); #endif dialog::addSelItem(XLAT("mouse & touchscreen"), "", 'm'); @@ -2422,22 +2416,22 @@ EX int read_config_args() { PHASEFROM(2); nomenukey = true; } -#if MAXMDIM >= 4 +#if MAXMDIM >= 4 else if(argis("-switch-fpp")) { PHASEFROM(2); geom3::switch_fpp(); } -#endif +#endif else if(argis("-switch-tpp")) { PHASEFROM(2); geom3::switch_tpp(); } -#if MAXMDIM >= 4 +#if MAXMDIM >= 4 else if(argis("-switch-3d")) { PHASEFROM(2); geom3::switch_always3(); } -#endif +#endif else if(argis("-nohelp")) { PHASEFROM(2); nohelp = true; diff --git a/control.cpp b/control.cpp index c7d78ca5..44313257 100644 --- a/control.cpp +++ b/control.cpp @@ -1021,7 +1021,7 @@ EX void mainloop() { #endif } -#if ISMOBILE==1 +#if ISMOBILE EX void displayabutton(int px, int py, string s, int col) { // TMP int siz = vid.yres > vid.xres ? vid.fsize*2 : vid.fsize * 3/2; diff --git a/dialogs.cpp b/dialogs.cpp index 7c914f67..dcf0018f 100644 --- a/dialogs.cpp +++ b/dialogs.cpp @@ -803,7 +803,7 @@ EX namespace dialog { else addSlider(ne.sc.direct(ne.vmin), ne.sc.direct(*ne.editwhat), ne.sc.direct(ne.vmax), 500); addBreak(100); -#if ISMOBILE==0 +#if !ISMOBILE addHelp(XLAT("You can scroll with arrow keys -- Ctrl to fine-tune")); addBreak(100); #endif diff --git a/drawing.cpp b/drawing.cpp index ad63a0da..c53e8026 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -239,7 +239,7 @@ EX void glflush() { } #endif -#if ISMOBILE==0 +#if !ISMOBILE SDL_Surface *aux; #endif @@ -1661,7 +1661,7 @@ void dqi_poly::draw() { } #endif - #if CAP_SVG==1 + #if CAP_SVG if(svg::in) { coords_to_poly(); color_t col = color; @@ -1678,10 +1678,10 @@ void dqi_poly::draw() { coords_to_poly(); - #if CAP_XGD==1 + #if CAP_XGD gdpush(1); gdpush(color); gdpush(outline); gdpush(polyi); for(int i=0; i> 8); #else diff --git a/geometry.cpp b/geometry.cpp index c0f8b799..f9508581 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -433,16 +433,16 @@ hpcshape ld alpha; int area; }; - shared_ptr gpdata; + shared_ptr gpdata = nullptr; #endif - int state; - int usershape_state; + int state = 0; + int usershape_state = 0; /** contains the texture point coordinates for 3D models */ basic_textureinfo models_texture; - geometry_information() { last = NULL; state = usershape_state = 0; gpdata = NULL; } + geometry_information() { last = NULL; } void require_basics() { if(state & 1) return; state |= 1; prepare_basics(); } void require_shapes() { if(state & 2) return; state |= 2; prepare_shapes(); } diff --git a/glhr.cpp b/glhr.cpp index 6a467824..a8a9f9fa 100644 --- a/glhr.cpp +++ b/glhr.cpp @@ -24,10 +24,6 @@ EX void glError(const char* GLcall, const char* file, const int line) { } } -#ifndef CAP_VERTEXBUFFER -#define CAP_VERTEXBUFFER (ISWEB) -#endif - #if HDR #if CAP_SHADER && CAP_NOSHADER #define WITHSHADER(x, y) if(glhr::noshaders) y else x diff --git a/graph.cpp b/graph.cpp index 411c6f89..85ed945f 100644 --- a/graph.cpp +++ b/graph.cpp @@ -4052,7 +4052,7 @@ EX void queuecircleat(cell *c, double rad, color_t col) { } #endif -#if ISMOBILE==1 +#if ISMOBILE #define MOBON (clicked) #else #define MOBON true diff --git a/help.cpp b/help.cpp index 64215864..40be1742 100644 --- a/help.cpp +++ b/help.cpp @@ -357,7 +357,7 @@ EX string generateHelpForItem(eItem it) { " You need to go deep to collect lots of them."); } -#if ISMOBILE==1 +#if ISMOBILE if(it == itOrbSafety) help += XLAT("This might be very useful for devices with limited memory."); #else @@ -525,7 +525,7 @@ void addMinefieldExplanation(string& s) { ); s += "\n\n"; -#if ISMOBILE==0 +#if !ISMOBILE s += XLAT("Known mines may be marked by pressing 'm'. Your allies won't step on marked mines."); #else s += XLAT("Known mines may be marked by touching while in drag mode. Your allies won't step on marked mines."); diff --git a/hyper.h b/hyper.h index 697f80f8..1723934b 100644 --- a/hyper.h +++ b/hyper.h @@ -732,7 +732,7 @@ struct colortable: vector { namespace scores { void load(); } -#if ISMOBILE==1 +#if ISMOBILE namespace leader { void showMenu(); void handleKey(int sym, int uni); } #endif @@ -741,7 +741,7 @@ int textwidth(int siz, const string &str); int gl_width(int size, const char *s); #endif -#ifdef ISMOBILE +#if ISMOBILE extern int andmode; extern bool longclick; extern bool useRangedOrb; diff --git a/hyperweb.cpp b/hyperweb.cpp index b393b2b1..8e9b5e48 100644 --- a/hyperweb.cpp +++ b/hyperweb.cpp @@ -30,10 +30,6 @@ #define EMSCRIPTEN #endif -#ifndef CAP_ORIENTATION -#define CAP_ORIENTATION 1 -#endif - #ifdef FAKEWEB namespace hr { void mainloopiter(); } template void emscripten_set_main_loop(A a, B b, C c) { while(true) mainloopiter(); } diff --git a/inventory.cpp b/inventory.cpp index 436e6e5e..6ac1c6b1 100644 --- a/inventory.cpp +++ b/inventory.cpp @@ -588,7 +588,7 @@ EX namespace inv { displaystr(vid.xres/2, vid.yres - vid.fsize*6, 2, vid.fsize, osminfo(which), icol, 8); } -#if ISMOBILE==0 +#if !ISMOBILE string hot = XLAT1("Hotkey: "); hot += getcstat; displaystr(vid.xres/2, vid.yres - vid.fsize*5, 2, vid.fsize, hot, icol, 8); #endif diff --git a/items.cpp b/items.cpp index b7ed30d6..6bf99556 100644 --- a/items.cpp +++ b/items.cpp @@ -467,7 +467,7 @@ EX void gainItem(eItem it) { if(chaosmode && gold() >= 300) achievement_gain_once("CHAOS", rg::chaos); -#if ISMOBILE==1 +#if ISMOBILE if(g < lastsafety + R30*3/2 && g2 >= lastsafety + R30*3/2) addMessage(XLAT("The Orb of Safety from the Land of Eternal Motion might save you.")); #endif diff --git a/menus.cpp b/menus.cpp index 7eb0b72c..7888a607 100644 --- a/menus.cpp +++ b/menus.cpp @@ -230,7 +230,7 @@ EX void showMainMenu() { dialog::addItem(XLAT(inSpecialMode() ? "reset special modes" : "back to the start menu"), 'R'); string q; - #if ISMOBILE==1 + #if ISMOBILE dialog::addItem(XLAT("visit the website"), 'q'); #else q = quitsaves() ? "save" : "quit"; @@ -248,7 +248,7 @@ EX void showMainMenu() { if(inv::on) dialog::addItem(XLAT("inventory"), 'i'); -#if ISMOBILE==1 +#if ISMOBILE #if CAP_ACHIEVE dialog::addItem(XLAT("leaderboards/achievements"), '3'); #endif @@ -305,7 +305,7 @@ EX void showMainMenu() { #endif else if(sym == SDLK_ESCAPE) showMissionScreen(); - #if ISMOBILE==1 + #if ISMOBILE #ifdef HAVE_ACHIEVEMENTS else if(NUMBERKEY == '3') { achievement_final(false); @@ -382,7 +382,7 @@ EX void enable_cheat() { else if(!cheater) dialog::cheat_if_confirmed([] { cheater++; addMessage(XLAT("You activate your demonic powers!")); -#if ISMOBILE==0 +#if !ISMOBILE addMessage(XLAT("Shift+F, Shift+O, Shift+T, Shift+L, Shift+U, etc.")); #endif popScreen(); diff --git a/mobile.cpp b/mobile.cpp index 31e2e5b9..312724db 100644 --- a/mobile.cpp +++ b/mobile.cpp @@ -44,7 +44,7 @@ string buildScoreDescription() { } #endif -#if ISMOBILE==1 +#if ISMOBILE int andmode; diff --git a/multi.cpp b/multi.cpp index 622c259d..7cdbdc41 100644 --- a/multi.cpp +++ b/multi.cpp @@ -549,7 +549,7 @@ EX void initConfig() { t[(int)'s'] = 16 + 6; t[(int)'a'] = 16 + 7; -#if ISMOBILE==0 +#if !ISMOBILE t[SDLK_KP8] = 16 + 4; t[SDLK_KP6] = 16 + 5; t[SDLK_KP2] = 16 + 6; @@ -572,7 +572,7 @@ EX void initConfig() { t[(int)'p'] = 32 + 10; t[(int)'['] = 32 + pcCenter; -#if ISMOBILE==0 +#if !ISMOBILE t[SDLK_UP] = 48 ; t[SDLK_RIGHT] = 48 + 1; t[SDLK_DOWN] = 48 + 2; @@ -973,4 +973,4 @@ EX void handleInput(int delta) { EX } -} \ No newline at end of file +} diff --git a/quit.cpp b/quit.cpp index e398e7e8..c20a4d70 100644 --- a/quit.cpp +++ b/quit.cpp @@ -122,7 +122,7 @@ EX hint hints[] = { []() { return true; }, []() { dialog::addInfo(XLAT( -#if ISMOBILE==1 +#if ISMOBILE "The 'world overview' shows all the lands in HyperRogue." #else "Press 'o' to see all the lands in HyperRogue." @@ -457,12 +457,12 @@ EX void showMission() { dialog::addItem(XLAT("inventory"), 'i'); if(racing::on) dialog::addItem(XLAT("racing menu"), 'o'); - #if ISMOBILE==0 +#if !ISMOBILE dialog::addItem(XLAT(quitsaves() ? "save" : "quit"), SDLK_F10); - #endif - #if CAP_ANDROIDSHARE +#endif +#if CAP_ANDROIDSHARE dialog::addItem(XLAT("SHARE"), 's'-96); - #endif +#endif } dialog::addItem(XLAT("message log"), 'l'); diff --git a/reg3.cpp b/reg3.cpp index 4d71f5f0..6d4ebe53 100644 --- a/reg3.cpp +++ b/reg3.cpp @@ -289,6 +289,7 @@ EX namespace reg3 { return Id; } +#if CAP_CRYSTAL int encode_coord(const crystal::coord& co) { int c = 0; for(int i=0; i<4; i++) c |= ((co[i]>>1) & 3) << (2*i); @@ -321,6 +322,7 @@ EX namespace reg3 { } } }; +#endif struct hrmap_field3 : reg3::hrmap_quotient3 { diff --git a/rogueviz/newconf.cpp b/rogueviz/newconf.cpp index 68c25941..cd73cd86 100644 --- a/rogueviz/newconf.cpp +++ b/rogueviz/newconf.cpp @@ -4,14 +4,7 @@ #include "../hyper.h" -#ifndef CAP_NCONF -#define CAP_NCONF 0 -#endif - #if CAP_NCONF -#ifndef CAP_DRAW -#define CAP_DRAW 0 -#endif #define main nconf_main #undef unordered_map #undef self diff --git a/rogueviz/rogueviz.cpp b/rogueviz/rogueviz.cpp index cff1abce..2ebba69f 100644 --- a/rogueviz/rogueviz.cpp +++ b/rogueviz/rogueviz.cpp @@ -913,10 +913,6 @@ void close() { relmatrices.clear(); } -#ifndef CAP_RVSLIDES -#define CAP_RVSLIDES (CAP_TOUR && !ISWEB) -#endif - #if CAP_COMMANDLINE int readArgs() { using namespace arg; diff --git a/rug.cpp b/rug.cpp index af3c1457..11b504e9 100644 --- a/rug.cpp +++ b/rug.cpp @@ -1624,8 +1624,10 @@ EX void show() { else if(uni == 'n' && !rug::rugged) pushScreen(rug_geometry_choice); #endif - else if(uni == 'g' && !rug::rugged && CAP_SDL) +#if CAP_SDL + else if(uni == 'g' && !rug::rugged) rendernogl = !rendernogl; +#endif else if(uni == 's') { texturesize *= 2; if(texturesize == 8192) texturesize = 64; diff --git a/savemem.cpp b/savemem.cpp index 29e9fe7e..7bf9e74c 100644 --- a/savemem.cpp +++ b/savemem.cpp @@ -285,7 +285,7 @@ EX void show_memory_menu() { } EX bool protect_memory() { - if(!CAP_MEMORY_RESERVE) return false; +#if CAP_MEMORY_RESERVE apply_memory_reserve(); if(reserve_limit && reserve_count < reserve_limit && !ignored_memory_warning) { pushScreen(show_memory_menu); @@ -295,6 +295,7 @@ EX bool protect_memory() { pushScreen(show_memory_menu); return true; } +#endif return false; } diff --git a/screenshot.cpp b/screenshot.cpp index e9c975a5..03cdc823 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -358,13 +358,14 @@ EX always_false in; /** 0 = no/unknown/disabled texture, 1 = rug, 2 = gradient, 3 = floor texture */ EX int texture_type(dqi_poly& p) { if(!p.tinf) return 0; - if(!CAP_PNG) return 0; +#if CAP_PNG if(!textures) return 0; if(p.tinf == &rug::tinf) return 1; #if MAXMDIM >= 4 if(p.tinf->texture_id == (int) floor_textures->renderedTexture) return (p.tinf->tvertices[0][0] == 0) ? 2 : 3; #endif +#endif return 0; } @@ -1732,8 +1733,13 @@ startanim perspective { "projection distance", no_init, [] { }}; startanim rug { "Hypersian Rug", [] { - if(!CAP_RUG) { pick(); return; } - rug::init(), rug::rugged = false; }, [] { +#if CAP_RUG + rug::init(); + rug::rugged = false; +#else + pick(); +#endif + }, [] { dynamicval b(rug::rugged, true); rug::physics(); dynamicval t(rug::rugView, cspin(1, 2, ticks / 3000.) * rug::rugView); diff --git a/surface.cpp b/surface.cpp index 81d0708a..50d1769e 100644 --- a/surface.cpp +++ b/surface.cpp @@ -370,10 +370,6 @@ int dexp_comb_colors[16] = { int coverage_style; EX vector > coverage; -#ifndef CAP_KUEN_MAP -#define CAP_KUEN_MAP 0 -#endif - #if CAP_KUEN_MAP void draw_kuen_map() { SDL_Surface *kuen_map = SDL_CreateRGBSurface(SDL_SWSURFACE,512,512,32,0,0,0,0); diff --git a/sysconfig.h b/sysconfig.h index 4d337864..ffbec3ab 100644 --- a/sysconfig.h +++ b/sysconfig.h @@ -63,6 +63,14 @@ #define ISMINI 0 #endif +#ifndef CAP_NCONF +#define CAP_NCONF 0 +#endif + +#ifndef CAP_DRAW +#define CAP_DRAW 0 +#endif + #ifndef CAP_XGD #define CAP_XGD (ISANDROID || ISFAKEMOBILE) #endif @@ -85,6 +93,10 @@ #define NOLICENSE ISSTEAM #endif +#ifndef CAP_VERTEXBUFFER +#define CAP_VERTEXBUFFER (ISWEB) +#endif + #ifndef CAP_SHADER #define CAP_SHADER CAP_GL #endif @@ -153,6 +165,10 @@ #define CAP_SURFACE CAP_RUG #endif +#ifndef CAP_KUEN_MAP +#define CAP_KUEN_MAP 0 +#endif + #ifndef CAP_EDIT #define CAP_EDIT (CAP_FILES && !ISWEB && !ISMINI) #endif @@ -197,6 +213,10 @@ #define CAP_ROGUEVIZ 0 #endif +#ifndef CAP_RVSLIDES +#define CAP_RVSLIDES (CAP_TOUR && !ISWEB) +#endif + #ifndef CAP_PROFILING #define CAP_PROFILING 0 #endif @@ -210,7 +230,7 @@ #endif #ifndef CAP_ORIENTATION -#define CAP_ORIENTATION ISMOBILE +#define CAP_ORIENTATION (ISMOBILE || ISWEB) #endif #ifndef CAP_MOUSEGRAB @@ -387,7 +407,6 @@ extern "C" { #define CAP_GLEW (CAP_GL && !ISMOBILE && !ISMAC && !ISLINUX && !ISWEB) #endif -#if CAP_GL #if CAP_GLEW #include #else @@ -409,7 +428,6 @@ extern "C" { #include #include #include - #endif #endif #endif diff --git a/system.cpp b/system.cpp index fa620319..351e9572 100644 --- a/system.cpp +++ b/system.cpp @@ -1068,7 +1068,7 @@ EX void saveStats(bool emergency IS(false)) { fprintf(f, "\n\n\n"); -#if ISMOBILE==0 +#if !ISMOBILE DEBB(DF_INIT, ("Game statistics saved to ", scorefile)); addMessage(XLAT("Game statistics saved to %1", scorefile)); #endif @@ -1556,7 +1556,7 @@ EX void finishAll() { saveStats(); #endif clearMemory(); -#if ISMOBILE==0 +#if !ISMOBILE cleargraph(); #endif