1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-01 11:19:43 +00:00

moved reg3 values to cgi

This commit is contained in:
Zeno Rogue
2020-04-05 10:53:34 +02:00
parent 8b7f2f3969
commit 233adddd36
7 changed files with 122 additions and 118 deletions

View File

@@ -1021,13 +1021,12 @@ void geometry_information::create_wall3d() {
}
}
if(GDIM == 3 && !euclid && !bt::in() && !nonisotropic && !hybri && !kite::in()) {
reg3::generate();
int facesize = isize(reg3::cellshape) / S7;
if(reg3::in()) {
int facesize = isize(cgi.cellshape) / S7;
for(int w=0; w<S7; w++) {
vector<hyperpoint> vertices;
for(int a=0; a<facesize; a++)
vertices.push_back(reg3::cellshape[w*facesize+a]);
vertices.push_back(cgi.cellshape[w*facesize+a]);
make_wall(w, vertices);
}
}