From 5a27fb4e27f1f49c78feef9c9b3c85e8e7958602 Mon Sep 17 00:00:00 2001 From: Simon Weis Date: Tue, 31 Oct 2023 18:04:36 +0100 Subject: [PATCH] test to remove shuffle --- .github/workflows/test_verification.yml | 4 +--- impl/gamelib/player/player.cpp | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_verification.yml b/.github/workflows/test_verification.yml index 0bcb6c4f..791153e7 100644 --- a/.github/workflows/test_verification.yml +++ b/.github/workflows/test_verification.yml @@ -9,8 +9,6 @@ on: jobs: LinuxSFML: runs-on: ubuntu-latest - env: - DISPLAY: ':99' steps: - name: Set up cmake uses: jwlawson/actions-setup-cmake@v1.11 @@ -59,7 +57,7 @@ jobs: run: jackd -d dummy & - name: Test - run: xvfb-run ./jt_tests --gtest_shuffle + run: xvfb-run ./jt_tests working-directory: ${{github.workspace}}/build/test/unit/jt_test LinuxSDL: diff --git a/impl/gamelib/player/player.cpp b/impl/gamelib/player/player.cpp index ee1d2396..eaaa728d 100644 --- a/impl/gamelib/player/player.cpp +++ b/impl/gamelib/player/player.cpp @@ -38,7 +38,7 @@ std::string selectWalkAnimation(jt::Vector2f const& velocity) Player::Player(std::shared_ptr world) { - b2BodyDef def; + b2BodyDef def {}; def.type = b2BodyType::b2_dynamicBody; m_b2Object = std::make_unique(world, &def); } @@ -58,4 +58,5 @@ void Player::doUpdate(float const elapsed) m_graphics->setAnimationIfNotSet(selectWalkAnimation(m_b2Object->getVelocity())); m_graphics->updateGraphics(elapsed); } + void Player::doDraw() const { m_graphics->draw(renderTarget()); }