diff --git a/complex2.cpp b/complex2.cpp index 3ff9a66b..f0449464 100644 --- a/complex2.cpp +++ b/complex2.cpp @@ -1461,5 +1461,9 @@ EX namespace dice { EX bool swap_forbidden(cell *a, cell *b) { return false; } EX void chaos_swap(cellwalker wa, cellwalker wb) {} EX } + +EX namespace mine { + EX bool in_minesweeper() { return false; } +EX } #endif } diff --git a/quit.cpp b/quit.cpp index b0c40204..99403b85 100644 --- a/quit.cpp +++ b/quit.cpp @@ -500,6 +500,7 @@ EX void showGameMenu() { clearMessages(); get_o_key().second(); }); + #if CAP_INV if(inv::on && items[itInventory]) { dialog::addItem(XLAT("inventory"), 'i'); dialog::add_action([] { @@ -507,6 +508,7 @@ EX void showGameMenu() { pushScreen(inv::show); }); } + #endif if(casual || ISMOBILE) { if(casual && savecount) dialog::addItem(XLAT("load (%1 turns passed)", its(turncount - save_turns)), SDLK_F9); diff --git a/racing.cpp b/racing.cpp index 22a23812..fb5e3d76 100644 --- a/racing.cpp +++ b/racing.cpp @@ -84,7 +84,7 @@ EX map best_scores_to_save; string ghost_prefix = "default"; -#if CAP_FILES +#if CAP_FILES && CAP_EDIT void hread(hstream& hs, ghostmoment& m) { int id; hread(hs, m.step, id, m.alpha, m.distance, m.beta, m.footphase); @@ -913,7 +913,9 @@ EX void load_official_track() { } string s = decompress_string(tracks[l]); shstream sf(s); + #if CAP_EDIT mapstream::loadMap(sf); + #endif cheater = autocheat = 0; official_race = true; } @@ -1289,7 +1291,9 @@ EX void race_won() { best_scores[specialland] = result; best_scores[specialland] = min(best_scores[specialland], result); best_scores_to_save[specialland] = result; + #if CAP_SAVE saveStats(); + #endif if(official_race) uploadScore(); } }