Skip to content

Commit aab02b9

Browse files
committed
Make DrawNodeTest CandyMixEffect behavior same with 2.x
1 parent 6d34e4a commit aab02b9

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
@@ -3632,10 +3632,11 @@ void CandyMixEeffect::update(float dt)
36323632
{
36333633
DrawNodeBaseTest::update(dt);
36343634
drawNode->clear();
3635+
static b2Timer timer = b2CreateTimer();
36353636

36363637
static float WID = 400;
36373638
static float HIG = 600;
3638-
float t = utils::getTimeInMilliseconds() / 1000.0f;
3639+
float t = b2GetMilliseconds(&timer) / 1000.0f;
36393640
float ta = sin(t * cos(t) * 0.02f) + t;
36403641
float tb = (1.0f + sin(t) * 1.0f) * 0.02f + 0.01f;
36413642
float xa = WID * 0.5f;

0 commit comments

Comments
 (0)