mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-20 09:52:50 +00:00
minor style changes
This commit is contained in:
parent
74b59d3331
commit
90977aacaf
@ -665,7 +665,7 @@ void geometry_information::generate_floorshapes_for(int id, cell *c, int siid, i
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if MAXMDIM >= 4
|
#if MAXMDIM >= 4
|
||||||
if(WDIM == 2 && GDIM == 3) {
|
if(embedded_plane) {
|
||||||
finishshape();
|
finishshape();
|
||||||
for(auto pfsh: all_plain_floorshapes) {
|
for(auto pfsh: all_plain_floorshapes) {
|
||||||
auto& fsh = *pfsh;
|
auto& fsh = *pfsh;
|
||||||
|
@ -111,7 +111,10 @@ void geometry_information::chasmifyPoly(double fol, double fol2, int k) {
|
|||||||
int zf = int(x);
|
int zf = int(x);
|
||||||
if(zf == isize(points)-1) zf--;
|
if(zf == isize(points)-1) zf--;
|
||||||
x -= zf;
|
x -= zf;
|
||||||
hpcpush(orthogonal_move(normalize_flat(points[zf] + (points[zf+1] - points[zf]) * x), fol + (fol2-fol) * y));
|
auto hp = points[zf] + (points[zf+1] - points[zf]) * x;
|
||||||
|
auto hf = normalize_flat(hp);
|
||||||
|
auto ho = orthogonal_move(hf, fol + (fol2-fol) * y);
|
||||||
|
hpcpush(ho);
|
||||||
};
|
};
|
||||||
texture_order([&] (ld x, ld y) { at((1-x+y)/2, (1-x-y)/2); });
|
texture_order([&] (ld x, ld y) { at((1-x+y)/2, (1-x-y)/2); });
|
||||||
texture_order([&] (ld x, ld y) { at((1-x-y)/2, (1+x-y)/2); });
|
texture_order([&] (ld x, ld y) { at((1-x-y)/2, (1+x-y)/2); });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user