1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-16 06:37:38 +00:00

fixed pseudogonal to pseudohedral

This commit is contained in:
Zeno Rogue
2021-10-15 22:38:24 +02:00
parent cb75ba44dc
commit ce4be1bc6b
4 changed files with 7 additions and 7 deletions

View File

@@ -606,14 +606,14 @@ void geometry_information::generate_floorshapes_for(int id, cell *c, int siid, i
for(int t=0; t<e-s; t++)
ctr += orthogonal_move(may_kleinize(hpc[s+t]), dfloor_table[k]);
ctr = normalize(ctr);
if(vid.pseudogonal) for(int t=0; t<e-s; t++) {
if(vid.pseudohedral) for(int t=0; t<e-s; t++) {
hyperpoint v1 = orthogonal_move(may_kleinize(hpc[s+t]), dfloor_table[k]) - ctr;
hyperpoint v2 = orthogonal_move(may_kleinize(hpc[s+t+1]), dfloor_table[k]) - ctr;
texture_order([&] (ld x, ld y) {
hpcpush(normalize(ctr + v1 * x + v2 * y));
});
}
if(!vid.pseudogonal) for(int t=0; t<e-s; t++) {
if(!vid.pseudohedral) for(int t=0; t<e-s; t++) {
hyperpoint v1 = may_kleinize(hpc[s+t]) - C0;
hyperpoint v2 = may_kleinize(hpc[s+t+1]) - C0;
texture_order([&] (ld x, ld y) {