1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-18 17:59:38 +00:00

count_scores -- move earlier

This commit is contained in:
Zeno Rogue 2024-06-02 12:28:37 +02:00
parent 5877690cce
commit 517f540800
2 changed files with 12 additions and 2 deletions

View File

@ -388,7 +388,15 @@ void load() {
});
}
}}
}
EX map<int, int> qty_scores_for;
EX void count_scores() {
qty_scores_for.clear();
for(auto s: scores::scores) qty_scores_for[scores::MODECODE_BOX]++;
}
}
#endif

View File

@ -979,7 +979,9 @@ void loadBox() {
boxid = 0; loading = true; applyBoxes(); loading = false;
}
const int MODECODE_BOX = 387;
#if HDR
constexpr int MODECODE_BOX = 387;
#endif
modecode_t fill_modecode() {
dynamicval<int> sp1(multi::players, save.box[197]);