From dd95d8070c2d3c02d680333ab5a56c8ddab7913e Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 25 Dec 2019 23:10:36 +0100 Subject: [PATCH] better bubbles --- graph.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index 9ece65ad..22e322db 100644 --- a/graph.cpp +++ b/graph.cpp @@ -4147,7 +4147,15 @@ EX void draw_flash(struct flashdata& f, const transmatrix& V, bool& kill) { if(tim <= f.size && !f.spd) kill = false; if(f.text != "") { - queuestr(V, (1 - tim * 1. / f.size) * f.angle, f.text, f.color); + if(GDIM == 3 || sphere) + queuestr(V, (1 - tim * 1. / f.size) * f.angle, f.text, f.color); + else if(!kill) { + hyperpoint h = tC0(V); + if(hdist0(h) > .1) { + transmatrix V2 = rspintox(h) * xpush(hdist0(h) * (1 / (1 - tim * 1. / f.size))); + queuestr(V2, f.angle, f.text, f.color); + } + } } else if(f.spd) {