diff options
| author | [email protected] <[email protected]> | 2018-03-15 23:51:39 +0100 |
|---|---|---|
| committer | Martinfx <[email protected]> | 2018-04-02 13:30:20 +0200 |
| commit | 6a3eca3f9295113db96f6442ec5ad8d465302084 (patch) | |
| tree | b9b5a332e181e7203aa530df65c5ebf5f880caba /examples/physac | |
| parent | ca9e652f8b390b1be81a727a9949cd60b84edebc (diff) | |
| download | raylib-6a3eca3f9295113db96f6442ec5ad8d465302084.tar.gz raylib-6a3eca3f9295113db96f6442ec5ad8d465302084.zip | |
Fix value stored to 'body' is never read
Diffstat (limited to 'examples/physac')
| -rw-r--r-- | examples/physac/physics_shatter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/physac/physics_shatter.c b/examples/physac/physics_shatter.c index 6b474cd3..07c3c4b3 100644 --- a/examples/physac/physics_shatter.c +++ b/examples/physac/physics_shatter.c @@ -38,8 +38,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() ResetPhysics(); // 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 (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) // Physics shatter input |
