Don't update, if no time passed

This commit is contained in:
jupeyy 2018-08-24 05:56:33 +02:00
parent d5defd2853
commit 6c10eb13c0

View file

@ -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;