1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +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);
}