1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-23 13:43:19 +00:00

fixed particle transparency

This commit is contained in:
Zeno Rogue 2018-02-12 00:07:22 +01:00
parent 0456f2945c
commit 7218d95ce4

View File

@ -5092,7 +5092,7 @@ void drawFlashes() {
if(f.spd) {
kill = tim > 300;
int partcol = darkena(f.color, 0, max(255 - kill/2, 0));
int partcol = darkena(f.color, 0, max(255 - tim*255/300, 0));
poly_outline = OUTLINE_DEFAULT;
queuepoly(V * spin(f.angle) * xpush(f.spd * tim / 50000.), shParticle[f.size], partcol);
}