File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44![ forks] ( https://img.shields.io/github/forks/Open-GD/OpenGD?style=for-the-badge )
55![ stars] ( https://img.shields.io/github/stars/Open-GD/OpenGD?style=for-the-badge&color=blue )
66![ LICENSE] ( https://img.shields.io/github/license/Open-GD/OpenGD?style=for-the-badge&color=blue )
7- <a href =" https://discord.gg/ " >
7+ <a href =" https://discord.gg/gcbuuR4JWg " >
88<img src =" https://dcbadge.vercel.app/api/server/gcbuuR4JWg " >
99</a >
1010</div >
Original file line number Diff line number Diff line change @@ -54,9 +54,14 @@ bool LoadingCircle::init()
5454}
5555void LoadingCircle::update (float delta)
5656{
57- if (m_pCircle) {
57+ if (m_pCircle)
58+ {
5859 float rot = m_pCircle->getRotation ();
5960 rot += delta * 60 * 4 ;
61+ if (rot > 360 )
62+ {
63+ rot -= 360 ;
64+ }
6065 m_pCircle->setRotation (rot);
6166 }
6267}
@@ -66,4 +71,4 @@ void LoadingCircle::removeMeAndCleanup()
6671 m_pCircle = nullptr ;
6772
6873 removeFromParentAndCleanup (true );
69- }
74+ }
You can’t perform that action at this time.
0 commit comments