Changes

m
β†’β€ŽBasic Animation: In IsTimeForNextFrame was the variable static int count = 0; every time the function was called declared and set to 0. This would result in a constant value of 1.
Line 944: Line 944:     
<source lang = "cpp">
 
<source lang = "cpp">
 +
static int count = 0;
 
bool IsTimeForNextFrame()
 
bool IsTimeForNextFrame()
 
{
 
{
βˆ’
      static int count = 0;
   
       count = count + 1;
 
       count = count + 1;
 
       if (count > 10000)
 
       if (count > 10000)
2

edits