Permalink
Browse files

Corrected assertion messages.

  • Loading branch information...
1 parent c97d2ef commit 5838295aa94e9a3049e45376b2cdda490e9b7f95 @slembcke committed Oct 3, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/cpShape.c
View
@@ -137,7 +137,7 @@ cpShapeGetElasticity(const cpShape *shape)
void
cpShapeSetElasticity(cpShape *shape, cpFloat elasticity)
{
- cpAssertHard(elasticity >= 0.0f, "Elasticity must be positive and non-zero.");
+ cpAssertHard(elasticity >= 0.0f, "Elasticity must be positive.");
cpBodyActivate(shape->body);
shape->e = elasticity;
}
@@ -151,7 +151,7 @@ cpShapeGetFriction(const cpShape *shape)
void
cpShapeSetFriction(cpShape *shape, cpFloat friction)
{
- cpAssertHard(friction >= 0.0f, "Friction must be postive and non-zero.");
+ cpAssertHard(friction >= 0.0f, "Friction must be postive.");
cpBodyActivate(shape->body);
shape->u = friction;
}

0 comments on commit 5838295

Please sign in to comment.