diff --git a/README.md b/README.md index 29fb727..bb2cf50 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # GRRLIB [![Continuous Integration](https://github.com/GRRLIB/GRRLIB/workflows/Continuous%20Integration/badge.svg)](https://github.com/GRRLIB/GRRLIB/actions) -[![Codacy Badge](https://app.codacy.com/project/badge/Grade/02847b348a1e4e6b850f956541ef2361)](https://www.codacy.com/gh/GRRLIB/GRRLIB/dashboard?utm_source=github.com&utm_medium=referral&utm_content=GRRLIB/GRRLIB&utm_campaign=Badge_Grade) +[![Codacy Badge](https://app.codacy.com/project/badge/Grade/02847b348a1e4e6b850f956541ef2361)](https://app.codacy.com/gh/GRRLIB/GRRLIB/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Join the chat at https://gitter.im/GRRLIB/GRRLIB](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/GRRLIB/GRRLIB?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ## Table of Contents diff --git a/examples/particle/source/main.cpp b/examples/particle/source/main.cpp index ce5f14a..04d132f 100644 --- a/examples/particle/source/main.cpp +++ b/examples/particle/source/main.cpp @@ -26,7 +26,7 @@ enum class Effect : u8 { }; // Random Number (0 - 1) in float -#define RANDOM ((((float)(rand() % 12))/12)-0.5) +#define RANDOM ((((float)(rand() % 12)) / 12) - 0.5f) // Basic structure to hold particle data struct Particle {