1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 06:27:17 +00:00

fixed on older compiler

This commit is contained in:
Zeno Rogue 2024-03-24 11:36:22 +01:00
parent deb207e4c3
commit 886a7ff43e
2 changed files with 3 additions and 3 deletions

View File

@ -1132,7 +1132,7 @@ EX void setLandSphere(cell *c) {
vector<eLand> euland;
map<int, eLand> euland3;
map<int, eLand> euland3_hash;
EX map<tuple<int, int, int>, eLand> landscape_lands;
EX map<array<int, 3>, eLand> landscape_lands;
EX eLand& get_euland(int c) {
euland.resize(max_vec);
@ -1146,7 +1146,7 @@ EX void clear_euland(eLand first) {
euland3.clear();
euland3[0] = first;
landscape_lands.clear();
landscape_lands[{0,0,0}] = first;
landscape_lands[make_array(0,0,0)] = first;
}
bool valid_wall_at(int c) {

View File

@ -2926,7 +2926,7 @@ EX void set_land_for_geometry(cell *c) {
if(sh * 2 < ld * 3) a[i] = gdiv(a[i], ld2)*2+1;
else a[i] = gdiv(a[i]+ld, ld2)*2;
}
eLand& l = landscape_lands[{a[0], a[1], a[2]}];
eLand& l = landscape_lands[make_array(a[0], a[1], a[2])];
if(l == laNone) l = random_land();
setland(c, l);
return;