From b7d62e90a7a0e4e404623af0c646495a3dd3fd2b Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 31 May 2011 13:17:14 +0000 Subject: Removed a forced recalculateLocalAabb for compound shapes, semi-colon in chat messages doesn't truncate the chat text any more, changed chat prompt to "Command:" if the first character is a slash, small misc cleanups --- src/core/entity.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/core/entity.cc') diff --git a/src/core/entity.cc b/src/core/entity.cc index 6ce94a7..84f4de0 100644 --- a/src/core/entity.cc +++ b/src/core/entity.cc @@ -492,7 +492,6 @@ void Entity::frame(const unsigned long elapsed) { if (entity_collision_child_shapes.size() > 0) { btCompoundShape *compoundshape = static_cast (entity_collision_shape); - bool recalculate = false; const float modelscale = radius() / model()->radius(); for (int n = 0; n < compoundshape->getNumChildShapes(); n++) { @@ -524,9 +523,6 @@ void Entity::frame(const unsigned long elapsed) compoundshape->updateChildTransform(n, child_transform); } } - - if (recalculate) - compoundshape->recalculateLocalAabb(); } } } -- cgit v1.2.3