Skip to content

Commit

Permalink
Merge branch 'slembcke:master' into shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
aganm committed Dec 16, 2021
2 parents d26371c + 0cb05e7 commit 74d4afa
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion demo/ChipmunkDebugDraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ void ChipmunkDebugDrawPolygon(int count, const cpVect *verts, cpFloat radius, cp

void ChipmunkDebugDrawBB(cpBB bb, cpSpaceDebugColor color)
{
cpVect verts[] = {
cpVect verts[4] = {
cpv(bb.r, bb.b),
cpv(bb.r, bb.t),
cpv(bb.l, bb.t),
Expand Down
2 changes: 1 addition & 1 deletion demo/Planet.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ add_box(cpSpace *space)
const cpFloat size = 10.0f;
const cpFloat mass = 1.0f;

cpVect verts[] = {
cpVect verts[4] = {
cpv(-size,-size),
cpv(-size, size),
cpv( size, size),
Expand Down
2 changes: 1 addition & 1 deletion demo/Plink.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ init(void)
cpShape *shape;

// Vertexes for a triangle shape.
cpVect tris[] = {
cpVect tris[4] = {
cpv(-15,-15),
cpv( 0, 10),
cpv( 15,-15),
Expand Down
2 changes: 1 addition & 1 deletion demo/Pump.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ init(void)
cpShapeSetFriction(shape, 0.5f);
cpShapeSetFilter(shape, NOT_GRABBABLE_FILTER);

cpVect verts[] = {
cpVect verts[4] = {
cpv(-30,-80),
cpv(-30, 80),
cpv( 30, 64),
Expand Down
2 changes: 1 addition & 1 deletion include/chipmunk/chipmunk_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ struct cpSpace {
cpArray *pooledArbiters;

cpArray *allocatedBuffers;
unsigned int locked;
int locked;

cpBool usesWildcards;
cpHashSet *collisionHandlers;
Expand Down
2 changes: 1 addition & 1 deletion src/cpPolyShape.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ cpBoxShapeInit(cpPolyShape *poly, cpBody *body, cpFloat width, cpFloat height, c
cpPolyShape *
cpBoxShapeInit2(cpPolyShape *poly, cpBody *body, cpBB box, cpFloat radius)
{
cpVect verts[] = {
cpVect verts[4] = {
cpv(box.r, box.b),
cpv(box.r, box.t),
cpv(box.l, box.t),
Expand Down

0 comments on commit 74d4afa

Please sign in to comment.