1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-21 02:19:44 +00:00

dual:: added some missing gd->store's

This commit is contained in:
Zeno Rogue
2019-05-30 16:12:38 +02:00
parent 31bb896089
commit a49de4530f
7 changed files with 31 additions and 6 deletions

View File

@@ -866,15 +866,17 @@ void setLandSphere(cell *c) {
}
}
eLand euland[max_vec];
vector<eLand> euland;
map<int, eLand> euland3;
map<int, eLand> euland3_hash;
eLand& get_euland(int c) {
euland.resize(max_vec);
return euland[c & (max_vec-1)];
}
void clear_euland(eLand first) {
euland.resize(max_vec);
for(int i=0; i<max_vec; i++) euland[i] = laNone;
euland[0] = euland[1] = euland[max_vec-1] = first;
euland3.clear();
@@ -1617,4 +1619,10 @@ void pregen() {
currentlands.push_back(l);
}
auto ccm_bigstuff = addHook(hooks_gamedata, 0, [] (gamedata* gd) {
gd->store(euland);
gd->store(euland3);
gd->store(euland3_hash);
});
}