summaryrefslogtreecommitdiffhomepage
path: root/examples/physac
diff options
context:
space:
mode:
authorRay <[email protected]>2018-04-02 18:10:38 +0200
committerGitHub <[email protected]>2018-04-02 18:10:38 +0200
commit3e0de314244fa943d1944bb92901043279b0a03e (patch)
treeae36ed7cbb10904be2acaa798177206accb2f132 /examples/physac
parentbefd363966307068ed8a6709b6db6204a84a3531 (diff)
parent201007e426816eea145c6ed516165d8a10fc4301 (diff)
downloadraylib-3e0de314244fa943d1944bb92901043279b0a03e.tar.gz
raylib-3e0de314244fa943d1944bb92901043279b0a03e.zip
Merge pull request #504 from Martinfx/master
Fix potential bugs from static analysis
Diffstat (limited to 'examples/physac')
-rw-r--r--examples/physac/physics_shatter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/physac/physics_shatter.c b/examples/physac/physics_shatter.c
index 19c3cb6d..8102e162 100644
--- a/examples/physac/physics_shatter.c
+++ b/examples/physac/physics_shatter.c
@@ -39,8 +39,8 @@ int main()
SetPhysicsGravity(0, 0);
// Create random polygon physics body to shatter
- PhysicsBody body = CreatePhysicsBodyPolygon((Vector2){ screenWidth/2, screenHeight/2 }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10);
-
+ CreatePhysicsBodyPolygon((Vector2){ screenWidth/2, screenHeight/2 }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10);
+
SetTargetFPS(60);
//--------------------------------------------------------------------------------------
@@ -53,7 +53,7 @@ int main()
if (needsReset)
{
// Create random polygon physics body to shatter
- body = CreatePhysicsBodyPolygon((Vector2){ screenWidth/2, screenHeight/2 }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10);
+ CreatePhysicsBodyPolygon((Vector2){ screenWidth/2, screenHeight/2 }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10);
}
if (IsKeyPressed('R')) // Reset physics input