1
0
mirror of https://github.com/libretro/RetroArch synced 2025-02-24 18:39:59 +00:00

Merge pull request from jdgleaver/rgui-rain-fix

(RGUI) Fix typo in 'rain' particle effect initialisation
This commit is contained in:
Twinaphex 2019-05-05 15:49:07 +02:00 committed by GitHub
commit 5d018db08d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1263,7 +1263,7 @@ static void rgui_init_particle_effect(rgui_t *rgui)
/* y pos */
particle->b = (float)(rand() % fb_height);
/* drop length */
particle->c = (float)weights[(unsigned)(rand() % 61)];
particle->c = (float)weights[(unsigned)(rand() % 60)];
/* drop speed (larger drops fall faster) */
particle->d = (particle->c / 12.0f) * (0.5f + ((float)(rand() % 150) / 200.0f));
}
@ -1435,7 +1435,7 @@ static void rgui_render_particle_effect(rgui_t *rgui)
/* y pos */
particle->b = 0.0f;
/* drop length */
particle->c = (float)weights[(unsigned)(rand() % 61)];
particle->c = (float)weights[(unsigned)(rand() % 60)];
/* drop speed (larger drops fall faster) */
particle->d = (particle->c / 12.0f) * (0.5f + ((float)(rand() % 150) / 200.0f));
}