From cd23817bf1884fee4457ab3381320b0c8fc33f48 Mon Sep 17 00:00:00 2001 From: Kai Blaschke Date: Wed, 28 Feb 2024 18:11:55 +0100 Subject: Fixed remaining compiler warnings Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed. --- source/game/StarMovementController.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/game/StarMovementController.cpp') diff --git a/source/game/StarMovementController.cpp b/source/game/StarMovementController.cpp index 88ac69f..a06ead5 100644 --- a/source/game/StarMovementController.cpp +++ b/source/game/StarMovementController.cpp @@ -624,9 +624,7 @@ void MovementController::tickMaster(float dt) { Vec2F newVelocity = relativeVelocity + m_surfaceVelocity; - Vec2F pos = position(); PolyF body = collisionBody(); - RectF boundBox = body.boundBox(); updateLiquidPercentage(); @@ -736,7 +734,7 @@ void MovementController::forEachMovingCollision(RectF const& region, functiongeometry(); auto pos = position(); auto body = collisionBody(); @@ -804,7 +802,6 @@ void MovementController::updateForceRegions(float dt) { } void MovementController::updateLiquidPercentage() { - auto geometry = world()->geometry(); auto pos = position(); auto body = collisionBody(); RectF boundBox = body.boundBox(); -- cgit v1.2.3