From daef06ee41f90e204ea4f2ca45a2679766d68b4d Mon Sep 17 00:00:00 2001 From: Maxime Boucher Date: Thu, 13 Jan 2022 09:58:26 +0100 Subject: [PATCH] score debug --- source/game/scenegraph.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/game/scenegraph.cpp b/source/game/scenegraph.cpp index 8585985..d18f948 100644 --- a/source/game/scenegraph.cpp +++ b/source/game/scenegraph.cpp @@ -354,17 +354,17 @@ void SceneGraph::update(TimeStep deltaTime) { mainDecor->setTransform(transform); background->setTransform(transformBackGround); soleil->setTransform(transformY); - updateScore(score1, player->score); + updateScore(score1, (int) player->score % 10); if (player->score >= 10) { - updateScore(score2, player->score / 10); + updateScore(score2, ((int) player->score / 10) % 100); addEntity(m_root, score2); } if (player->score >= 100) { - updateScore(score3, player->score / 100); + updateScore(score3, ((int) player->score / 100) % 1000); addEntity(m_root, score3); } if (player->score >= 1000) { - updateScore(score4, player->score / 1000); + updateScore(score4, ((int) player->score / 1000 % 10000)); addEntity(m_root, score4); }