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 void chaos_swap(cellwalker wa, cellwalker wb) {}
|
||||
EX }
|
||||
|
||||
EX namespace mine {
|
||||
EX bool in_minesweeper() { return false; }
|
||||
EX }
|
||||
#endif
|
||||
}
|
||||
|
2
quit.cpp
2
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);
|
||||
|
@ -84,7 +84,7 @@ EX map<eLand, int> 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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user