destroying doll body on kill, fixes #66

This commit is contained in:
logsol 2014-06-07 15:48:03 +02:00
parent 24e179f3b2
commit ef98b9dd28
2 changed files with 3 additions and 2 deletions

View file

@ -36,9 +36,9 @@ define(function() {
MAX_THROW_FORCE: 18 * 3.5, MAX_THROW_FORCE: 18 * 3.5,
MAX_THROW_ANGULAR_VELOCITY: 0, MAX_THROW_ANGULAR_VELOCITY: 0,
MAX_RUNNING_WEIGHT: 9, MAX_RUNNING_WEIGHT: 9,
RESPAWN_TIME: 512, RESPAWN_TIME: 5,
HEALTH_DISPLAY_TIME: 2, HEALTH_DISPLAY_TIME: 2,
RAGDOLL_DESTRUCTION_TIME: 250, RAGDOLL_DESTRUCTION_TIME: 20,
// restitution: bouncyness, friction: rubbing, density: mass // restitution: bouncyness, friction: rubbing, density: mass
TILE_FRICTION: 0.99, TILE_FRICTION: 0.99,

View file

@ -442,6 +442,7 @@ function (Parent, Box2D, Settings, CollisionDetector, Item, Nc) {
}; };
Doll.prototype.destroy = function() { Doll.prototype.destroy = function() {
Parent.prototype.destroy.call(this);
}; };
return Doll; return Doll;