瀏覽代碼

Fix value stored to 'body' is never read

pull/504/head
maficccc@gmail.com 7 年之前
committed by Martinfx
父節點
當前提交
6a3eca3f92
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      examples/physac/physics_shatter.c

+ 3
- 3
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

Loading…
取消
儲存