From 5de099e9214e91f7c60ce590f6d403dc64cf912b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 10 May 2019 02:43:07 +0200 Subject: [PATCH] 2d3d:: fan graphics --- graph.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index 85a1293a..da5cbee6 100644 --- a/graph.cpp +++ b/graph.cpp @@ -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: