Skip to content

Commit 16bc58a

Browse files
committed
Make DrawNodeTest CandyMixEffect behavior same with 2.x
1 parent e3156e1 commit 16bc58a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/cpp-tests/Source/DrawNodeTest/DrawNodeTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3598,10 +3598,11 @@ void CandyMixEeffect::update(float dt)
35983598
{
35993599
DrawNodeBaseTest::update(dt);
36003600
drawNode->clear();
3601+
static b2Timer timer = b2CreateTimer();
36013602

36023603
static float WID = 400;
36033604
static float HIG = 600;
3604-
float t = utils::getTimeInMilliseconds() / 1000.0f;
3605+
float t = b2GetMilliseconds(&timer) / 1000.0f;
36053606
float ta = sin(t * cos(t) * 0.02f) + t;
36063607
float tb = (1.0f + sin(t) * 1.0f) * 0.02f + 0.01f;
36073608
float xa = WID * 0.5f;

0 commit comments

Comments
 (0)