From 14e9ebec57477bed40bcb1f0403c965f0634c7d9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 10 May 2019 01:31:34 +0200 Subject: [PATCH] cones for bonfires, fires, thumpers, and sea buoys --- graph.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index aac23038..75f442cb 100644 --- a/graph.cpp +++ b/graph.cpp @@ -5284,6 +5284,10 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) { case waBarrier: if(c->land == laOceanWall && wmescher && wmspatial) { + if(GDIM == 3 && qfi.fshape) { + draw_shapevec(c, V, qfi.fshape->cone, darkena(wcol, 0, 0xFF), PPR::WALL); + break; + } const int layers = 2 << detaillevel; dynamicval ds(qfi.shape, &shCircleFloor); dynamicval dss(qfi.spin, Id); @@ -5364,7 +5368,9 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) { else if(isFire(c) || isThumper(c) || c->wall == waBonfireOff) { auto V2 = V; if(hasTimeout(c)) V2 = V2 * spintick(c->land == laPower ? 5000 : 500); - queuepoly(V2, shStar, darkena(wcol, 0, 0xF0)); + if(GDIM == 3 && qfi.fshape) + draw_shapevec(c, V2, qfi.fshape->cone, darkena(wcol, 0, 0xF0), PPR::WALL); + else queuepoly(V2, shStar, darkena(wcol, 0, 0xF0)); if(isFire(c) && rand() % 300 < ticks - lastt) drawParticle(c, wcol, 75); }