Skip to content

Commit 44187c6

Browse files
authored
Merge branch 'Open-GD:main' into main
2 parents 118618e + 2a0e307 commit 44187c6

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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>

Source/LoadingCircle.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,14 @@ bool LoadingCircle::init()
5454
}
5555
void 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+
}

0 commit comments

Comments
 (0)