| 1 |
Descriptionscip-debian debian chipmunk 7.0.3-7 chipmunk/patches/`spelling-fixes.patch`#Description.: Spelling fixes |
| 2 |
Authorscip-debian debian chipmunk 7.0.3-7 chipmunk/patches/`spelling-fixes.patch`#Author.: Stephen Kitt <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 3 |
Forwardedscip-debian debian chipmunk 7.0.3-7 chipmunk/patches/`spelling-fixes.patch`#Forwarded.: https://github.com/slembcke/Chipmunk2D/pull/193 |
| 4 |
|
| 5 |
--- a/src/cpShape.cscip-debian debian chipmunk 7.0.3-7 chipmunk/upstream/`src/cpShape.c`: |
| 6 |
+++ b/src/cpShape.cscip-debian debian chipmunk 7.0.3-7 chipmunk/upstream/`src/cpShape.c`: |
| 7 |
@@ -151,7 +151,7 @@ |
| 8 |
void |
| 9 |
cpShapeSetFriction(cpShape *shape, cpFloat friction) |
| 10 |
{ |
| 11 |
|
| 12 |
+ cpAssertHard(friction >= 0.0f, "Friction must be positive."); |
| 13 |
cpBodyActivate(shape->body); |
| 14 |
shape->u = friction; |
| 15 |
} |