diff options
| author | Jeffery Myers <[email protected]> | 2021-04-25 09:50:26 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-25 18:50:26 +0200 |
| commit | 6c518008a58853197890b45e941f342e4195de60 (patch) | |
| tree | 429e12c1ee0c6206c69c7a93c7726aa3ab3d533b /examples/physics | |
| parent | 87198586554e218834542098ec40e6611452c3aa (diff) | |
| download | raylib-6c518008a58853197890b45e941f342e4195de60.tar.gz raylib-6c518008a58853197890b45e941f342e4195de60.zip | |
Fixes for 64 bit typecast warnings (#1733)
Diffstat (limited to 'examples/physics')
| -rw-r--r-- | examples/physics/physics_shatter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/physics/physics_shatter.c b/examples/physics/physics_shatter.c index e996a372..d14e9ba6 100644 --- a/examples/physics/physics_shatter.c +++ b/examples/physics/physics_shatter.c @@ -35,7 +35,7 @@ int main(void) SetPhysicsGravity(0, 0); // Create random polygon physics body to shatter - CreatePhysicsBodyPolygon((Vector2){ screenWidth/2, screenHeight/2 }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10); + CreatePhysicsBodyPolygon((Vector2){ screenWidth/2.0f, screenHeight/2.0f }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10); SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- @@ -50,7 +50,7 @@ int main(void) { ResetPhysics(); - CreatePhysicsBodyPolygon((Vector2){ screenWidth/2, screenHeight/2 }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10); + CreatePhysicsBodyPolygon((Vector2){ screenWidth/2.0f, screenHeight/2.0f }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10); } if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) // Physics shatter input |
