floor textures now work with >8 sides

This commit is contained in:
Zeno Rogue 2019-07-22 11:22:21 +02:00
parent 2d30f3830c
commit 856e1147a1
1 changed files with 1 additions and 1 deletions

View File

@ -901,7 +901,7 @@ void draw_shape_for_texture(floorshape* sh) {
hyperpoint v1 = hpxyz3(0.25, 0.25, 0, 0);
hyperpoint v2 = hpxyz3(0.25, -0.25, 0, 0);
for(int a=0; a<8; a++)
for(int a=0; a<MAX_EDGE; a++)
texture_order([&] (ld x, ld y) {
hyperpoint h = center + v1 * x + v2 * y;
hyperpoint inmodel;