mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Don't update, if no time passed
This commit is contained in:
parent
d5defd2853
commit
6c10eb13c0
|
@ -74,6 +74,9 @@ void CParticles::Add(int Group, CParticle *pPart)
|
|||
|
||||
void CParticles::Update(float TimePassed)
|
||||
{
|
||||
if(TimePassed <= 0.0f)
|
||||
return;
|
||||
|
||||
static float FrictionFraction = 0;
|
||||
FrictionFraction += TimePassed;
|
||||
|
||||
|
|
Loading…
Reference in a new issue