diff options
| author | raysan5 <[email protected]> | 2021-10-13 19:34:37 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-10-13 19:34:37 +0200 |
| commit | 1350361f588c7b590b23f9a1688ac5746e60044e (patch) | |
| tree | 8098f9db9e1488bca7a4c0554cd6147481c19567 /src/rmodels.c | |
| parent | e545286369cdd4d8bf08f4f9064f5b341df384c6 (diff) | |
| download | raylib-1350361f588c7b590b23f9a1688ac5746e60044e.tar.gz raylib-1350361f588c7b590b23f9a1688ac5746e60044e.zip | |
Reviewed formatting
Diffstat (limited to 'src/rmodels.c')
| -rw-r--r-- | src/rmodels.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/rmodels.c b/src/rmodels.c index 1063f9ec..6b5c9c2f 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -711,12 +711,9 @@ void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float e int numVertex = sides*6; rlCheckRenderBatchLimit(numVertex); - if(sides < 3) sides = 3; Vector3 direction = { endPos.x - startPos.x, endPos.y - startPos.y, endPos.z - startPos.z }; - if(direction.x == 0 && direction.y == 0 && direction.z == 0) { - return; - } + if ((direction.x == 0) && (direction.y == 0) && (direction.z == 0)) return; // Construct a basis of the base and the top face: Vector3 b1 = Vector3Normalize(Vector3Perpendicular(direction)); @@ -809,9 +806,7 @@ void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, fl rlCheckRenderBatchLimit(numVertex); Vector3 direction = { endPos.x - startPos.x, endPos.y - startPos.y, endPos.z - startPos.z }; - if(direction.x == 0 && direction.y == 0 && direction.z == 0) { - return; - } + if ((direction.x == 0) && (direction.y == 0) && (direction.z == 0))return; // Construct a basis of the base and the top face: Vector3 b1 = Vector3Normalize(Vector3Perpendicular(direction)); |
