From f1dd349cee4ef5e746db385faa0f0d7f281856b3 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 2 Jan 2020 16:54:28 +0100 Subject: [PATCH] static_bubbles (always false) --- graph.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/graph.cpp b/graph.cpp index ac555392..29ff82a6 100644 --- a/graph.cpp +++ b/graph.cpp @@ -4148,12 +4148,17 @@ void drawFlashes() { } #if CAP_QUEUE -EX void draw_flash(struct flashdata& f, const transmatrix& V, bool& kill) { +always_false static_bubbles; + +EX void draw_flash(struct flashdata& f, const transmatrix& V, bool& kill) { int tim = ticks - f.t; - + if(tim <= f.size && !f.spd) kill = false; if(f.text != "") { + if(static_bubbles) { + tim = 0; kill = false; + } color_t col = f.color; dynamicval p(poly_outline, poly_outline); int r = 2; @@ -4167,6 +4172,13 @@ EX void draw_flash(struct flashdata& f, const transmatrix& V, bool& kill) { queuestr(V2, f.angle, f.text, col, r); } } + if(static_bubbles) { + ld rad[25]; + for(int a=0; a<24; a++) rad[a] = (0.5 + randd() * .3 + 0.5 * (a&1)) / (2.8 + celldistance(f.where, cwt.at) * .2); + rad[24] = rad[0]; + for(int a=0; a<24; a++) curvepoint(V * xspinpush0(15 * degree * a, rad[a])); + queuecurve(0xFF, 0xFF0000FF, PPR::SUPERLINE); + } } else if(f.spd) {