1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

inforder:: some settings in polygons.cpp to draw procedural graphics correctly

This commit is contained in:
Zeno Rogue 2019-10-10 13:13:12 +02:00
parent 76ca5a8dac
commit 7a29d015b3

View File

@ -425,6 +425,7 @@ void geometry_information::procedural_shapes() {
else { else {
ld rad0 = floorrad0, rad1 = floorrad1; ld rad0 = floorrad0, rad1 = floorrad1;
if(penrose) rad0 /= 2, rad1 /= 2; if(penrose) rad0 /= 2, rad1 /= 2;
if(S3 >= OINF) rad0 = rad1 = zhexf;
bshape(shWall[0], PPR::WALL); bshape(shWall[0], PPR::WALL);
for(int t=0; t<=S6; t++) { for(int t=0; t<=S6; t++) {
hpcpush(ddi(S7 + t*S14, rad0) * C0); hpcpush(ddi(S7 + t*S14, rad0) * C0);
@ -1127,6 +1128,10 @@ void geometry_information::prepare_shapes() {
SD3 = S3; SD3 = S3;
SD7 = S7; SD7 = S7;
} }
if(S3 >= OINF) {
SD3 = 3;
SD7 = 9;
}
SD6 = SD3 * 2; SD6 = SD3 * 2;
S42 = SD7 * SD6; S42 = SD7 * SD6;
S12 = SD6 * 2; S12 = SD6 * 2;