diff options
author | Stijn Buys <ingar@osirion.org> | 2011-07-13 16:51:07 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-07-13 16:51:07 +0000 |
commit | 7d0256828f5b48dc7098a22844259bc915649121 (patch) | |
tree | f5f32ebfb2f26a25d4f94926777332e89f57f4d9 /src | |
parent | 72956bdc7733f5744eab1488cbc4b5e685d4dad1 (diff) |
Do not update ship position and axis while docked.
Diffstat (limited to 'src')
-rw-r--r-- | src/game/base/ship.cc | 10 |
1 files changed, 1 insertions, 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; |