Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-07-13 16:51:07 +0000
committerStijn Buys <ingar@osirion.org>2011-07-13 16:51:07 +0000
commit7d0256828f5b48dc7098a22844259bc915649121 (patch)
treef5f32ebfb2f26a25d4f94926777332e89f57f4d9
parent72956bdc7733f5744eab1488cbc4b5e685d4dad1 (diff)
Do not update ship position and axis while docked.
-rw-r--r--src/game/base/ship.cc10
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;