Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarMovementController.cpp
diff options
context:
space:
mode:
authorKai Blaschke <kai.blaschke@kb-dev.net>2024-02-28 18:11:55 +0100
committerKai Blaschke <kai.blaschke@kb-dev.net>2024-02-28 18:30:27 +0100
commitcd23817bf1884fee4457ab3381320b0c8fc33f48 (patch)
tree9440ff3b0386ca9e3b1bac9eda168741ec6debb3 /source/game/StarMovementController.cpp
parent28d486446ca176ef0168a7284d85cb49a75a54fb (diff)
Fixed remaining compiler warnings
Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed.
Diffstat (limited to 'source/game/StarMovementController.cpp')
-rw-r--r--source/game/StarMovementController.cpp5
1 files changed, 1 insertions, 4 deletions
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, function<bo
}
}
-void MovementController::updateForceRegions(float dt) {
+void MovementController::updateForceRegions(float) {
auto geometry = world()->geometry();
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();