2d3d:: fan graphics

This commit is contained in:
Zeno Rogue 2019-05-10 02:43:07 +02:00
parent 8046de11bd
commit 5de099e921
1 changed files with 5 additions and 1 deletions

View File

@ -5260,7 +5260,11 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
break;
case waFan:
queuepoly(V * spintick(PURE ? -1000 : -500, 1/12.), shFan, darkena(wcol, 0, 0xFF));
if(DIM == 3)
for(int a=0; a<10; a++)
queuepoly(V * zpush(geom3::FLOOR + (geom3::WALL - geom3::FLOOR) * a/10.) * spintick(a * degree + PURE ? -1000 : -500, 1/12.), shFan, darkena(wcol, 0, 0xFF));
else
queuepoly(V * spintick(PURE ? -1000 : -500, 1/12.), shFan, darkena(wcol, 0, 0xFF));
break;
case waArrowTrap: