mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 09:00:34 +00:00
extra exports
This commit is contained in:
parent
9108d06543
commit
40765e8808
@ -1461,5 +1461,9 @@ EX namespace dice {
|
|||||||
EX bool swap_forbidden(cell *a, cell *b) { return false; }
|
EX bool swap_forbidden(cell *a, cell *b) { return false; }
|
||||||
EX void chaos_swap(cellwalker wa, cellwalker wb) {}
|
EX void chaos_swap(cellwalker wa, cellwalker wb) {}
|
||||||
EX }
|
EX }
|
||||||
|
|
||||||
|
EX namespace mine {
|
||||||
|
EX bool in_minesweeper() { return false; }
|
||||||
|
EX }
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
2
quit.cpp
2
quit.cpp
@ -500,6 +500,7 @@ EX void showGameMenu() {
|
|||||||
clearMessages();
|
clearMessages();
|
||||||
get_o_key().second();
|
get_o_key().second();
|
||||||
});
|
});
|
||||||
|
#if CAP_INV
|
||||||
if(inv::on && items[itInventory]) {
|
if(inv::on && items[itInventory]) {
|
||||||
dialog::addItem(XLAT("inventory"), 'i');
|
dialog::addItem(XLAT("inventory"), 'i');
|
||||||
dialog::add_action([] {
|
dialog::add_action([] {
|
||||||
@ -507,6 +508,7 @@ EX void showGameMenu() {
|
|||||||
pushScreen(inv::show);
|
pushScreen(inv::show);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if(casual || ISMOBILE) {
|
if(casual || ISMOBILE) {
|
||||||
if(casual && savecount)
|
if(casual && savecount)
|
||||||
dialog::addItem(XLAT("load (%1 turns passed)", its(turncount - save_turns)), SDLK_F9);
|
dialog::addItem(XLAT("load (%1 turns passed)", its(turncount - save_turns)), SDLK_F9);
|
||||||
|
@ -84,7 +84,7 @@ EX map<eLand, int> best_scores_to_save;
|
|||||||
|
|
||||||
string ghost_prefix = "default";
|
string ghost_prefix = "default";
|
||||||
|
|
||||||
#if CAP_FILES
|
#if CAP_FILES && CAP_EDIT
|
||||||
void hread(hstream& hs, ghostmoment& m) {
|
void hread(hstream& hs, ghostmoment& m) {
|
||||||
int id;
|
int id;
|
||||||
hread(hs, m.step, id, m.alpha, m.distance, m.beta, m.footphase);
|
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]);
|
string s = decompress_string(tracks[l]);
|
||||||
shstream sf(s);
|
shstream sf(s);
|
||||||
|
#if CAP_EDIT
|
||||||
mapstream::loadMap(sf);
|
mapstream::loadMap(sf);
|
||||||
|
#endif
|
||||||
cheater = autocheat = 0;
|
cheater = autocheat = 0;
|
||||||
official_race = true;
|
official_race = true;
|
||||||
}
|
}
|
||||||
@ -1289,7 +1291,9 @@ EX void race_won() {
|
|||||||
best_scores[specialland] = result;
|
best_scores[specialland] = result;
|
||||||
best_scores[specialland] = min(best_scores[specialland], result);
|
best_scores[specialland] = min(best_scores[specialland], result);
|
||||||
best_scores_to_save[specialland] = result;
|
best_scores_to_save[specialland] = result;
|
||||||
|
#if CAP_SAVE
|
||||||
saveStats();
|
saveStats();
|
||||||
|
#endif
|
||||||
if(official_race) uploadScore();
|
if(official_race) uploadScore();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user