From 7d0256828f5b48dc7098a22844259bc915649121 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 13 Jul 2011 16:51:07 +0000 Subject: Do not update ship position and axis while docked. --- src/game/base/ship.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc index 459b8fd..51d111b 100644 --- a/src/game/base/ship.cc +++ b/src/game/base/ship.cc @@ -372,17 +372,9 @@ void Ship::action (btScalar seconds) break; case core::Entity::Docked: - //maxspeed = 0.0f; - engine_force = 0.0f; - - t.setIdentity(); - t.setOrigin(to_btVector3(location())); - t.setBasis(to_btMatrix3x3(axis())); - body()->setWorldTransform(t); - zone()->physics()->synchronizeSingleMotionState(entity_body); - return; break; + default: //maxspeed = 0.0f; engine_force = 0.0f; -- cgit v1.2.3