1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

one more fix for plain floors

This commit is contained in:
Zeno Rogue 2023-05-30 18:42:35 +02:00
parent 61610282ca
commit 5054b12b93

View File

@ -734,7 +734,6 @@ void geometry_information::generate_floorshapes_for(int id, cell *c, int siid, i
hyperpoint ctr = cgi.emb->logical_to_actual(z); hyperpoint ctr = cgi.emb->logical_to_actual(z);
for(int t=0; t<c->type; t++) hs[t] = get_circumscribed_corner(c, t, ctr); for(int t=0; t<c->type; t++) hs[t] = get_circumscribed_corner(c, t, ctr);
// for(int t=0; t<c->type; t++) hs[t] = xspinpush0(t * TAU / c->type, 0.2); // kleinize(get_circumscribed_corner(c, t, ctr)); // for(int t=0; t<c->type; t++) hs[t] = xspinpush0(t * TAU / c->type, 0.2); // kleinize(get_circumscribed_corner(c, t, ctr));
println(hlog, "hs is: ", hs, " dft=", dfloor_table[k], " type=", c->type, " id=", id);
for(int t=0; t<c->type; t++) { for(int t=0; t<c->type; t++) {
hyperpoint v1 = hs[t] - ctr; hyperpoint v1 = hs[t] - ctr;
@ -743,6 +742,10 @@ void geometry_information::generate_floorshapes_for(int id, cell *c, int siid, i
hpcpush(normalize(ctr + v1 * x + v2 * y)); hpcpush(normalize(ctr + v1 * x + v2 * y));
}); });
} }
/* also affect the plain floor */
bshape(fsh.b[id], PPR::FLOOR);
for(hyperpoint& h: hs) hpcpush(h);
hpcpush(hs[0]);
} }
if(vid.pseudohedral == phOFF) for(int t=0; t<e-s; t++) { if(vid.pseudohedral == phOFF) for(int t=0; t<e-s; t++) {