From eb319fdadebf972f2244ff080474d22e884d5db4 Mon Sep 17 00:00:00 2001 From: bjornbytes Date: Sat, 21 Nov 2020 14:37:47 -0700 Subject: [PATCH] Fix trailing whitespace; --- src/api/l_physics_shapes.c | 2 +- src/modules/physics/physics.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/api/l_physics_shapes.c b/src/api/l_physics_shapes.c index 9f3630cc..0f64fabd 100644 --- a/src/api/l_physics_shapes.c +++ b/src/api/l_physics_shapes.c @@ -116,7 +116,7 @@ static int l_lovrShapeGetPosition(lua_State* L) { static int l_lovrShapeSetPosition(lua_State* L) { Shape* shape = luax_checkshape(L, 1); lovrAssert(lovrShapeGetCollider(shape) != NULL, "Shape must be attached to collider"); - float position[4]; + float position[4]; luax_readvec3(L, 2, position, NULL); lovrShapeSetPosition(shape, position[0], position[1], position[2]); return 0; diff --git a/src/modules/physics/physics.c b/src/modules/physics/physics.c index eba84934..5d235868 100644 --- a/src/modules/physics/physics.c +++ b/src/modules/physics/physics.c @@ -907,8 +907,7 @@ void lovrCylinderShapeSetLength(CylinderShape* cylinder, float length) { MeshShape* lovrMeshShapeInit(MeshShape* mesh, int vertexCount, float vertices[], int indexCount, dTriIndex indices[]) { dTriMeshDataID dataID = dGeomTriMeshDataCreate(); - dGeomTriMeshDataBuildSingle(dataID, vertices, 3 * sizeof(float), vertexCount, - indices, indexCount, 3 * sizeof(dTriIndex)); + dGeomTriMeshDataBuildSingle(dataID, vertices, 3 * sizeof(float), vertexCount, indices, indexCount, 3 * sizeof(dTriIndex)); dGeomTriMeshDataPreprocess2(dataID, (1U << dTRIDATAPREPROCESS_BUILD_FACE_ANGLES), NULL); mesh->id = dCreateTriMesh(0, dataID, 0, 0, 0); mesh->type = SHAPE_MESH;