summaryrefslogtreecommitdiffhomepage
path: root/src/physac.h
diff options
context:
space:
mode:
authorRay <[email protected]>2019-10-29 16:03:21 +0100
committerRay <[email protected]>2019-10-29 16:03:21 +0100
commitdc6136e820a5793fb469e78154b57a46ac619139 (patch)
tree0e1c8006738d0fad0584fac2d6157e9d9fb708a2 /src/physac.h
parent75b0264f35d8895c1e64c7c7bc85d1572d167cf2 (diff)
downloadraylib-dc6136e820a5793fb469e78154b57a46ac619139.tar.gz
raylib-dc6136e820a5793fb469e78154b57a46ac619139.zip
Review formatting for PR #1004
Diffstat (limited to 'src/physac.h')
-rw-r--r--src/physac.h35
1 files changed, 14 insertions, 21 deletions
diff --git a/src/physac.h b/src/physac.h
index b23fb1af..ea7dcc58 100644
--- a/src/physac.h
+++ b/src/physac.h
@@ -842,17 +842,13 @@ PHYSACDEF void DestroyPhysicsBody(PhysicsBody body)
}
}
-
- if (index == -1){
-
- #if defined(PHYSAC_DEBUG)
- printf("[PHYSAC] cannot find body id %i in pointers array\n", id);
- #endif
-
- // prevent access to index -1
- return;
- }
-
+ if (index == -1)
+ {
+ #if defined(PHYSAC_DEBUG)
+ printf("[PHYSAC] Not possible to find body id %i in pointers array\n", id);
+ #endif
+ return; // Prevent access to index -1
+ }
// Free body allocated memory
PHYSAC_FREE(body);
@@ -1257,16 +1253,13 @@ static void DestroyPhysicsManifold(PhysicsManifold manifold)
}
}
-
- if (index == -1) {
- #if defined(PHYSAC_DEBUG)
- printf("[PHYSAC] cannot find manifold id %i in pointers array\n", id);
- #endif
-
- //prevent access to index -1
- return;
- }
-
+ if (index == -1)
+ {
+ #if defined(PHYSAC_DEBUG)
+ printf("[PHYSAC] Not possible to manifold id %i in pointers array\n", id);
+ #endif
+ return; // Prevent access to index -1
+ }
// Free manifold allocated memory
PHYSAC_FREE(manifold);