SpawnSphere Mounting

This commit is contained in:
OTHGMars 2014-06-16 20:53:10 -04:00 committed by Azaezel
parent 3afd5461c6
commit a285b7b07b

View file

@ -442,22 +442,12 @@ void SpawnSphere::unpackUpdate(NetConnection * con, BitStream * stream)
void SpawnSphere::processTick( const Move *move ) void SpawnSphere::processTick( const Move *move )
{ {
if ( isServerObject() && isMounted() ) Parent::processTick( move );
{
MatrixF mat( true );
mMount.object->getRenderMountTransform( 0.f, mMount.node, mMount.xfm, &mat );
setTransform( mat );
}
} }
void SpawnSphere::advanceTime( F32 timeDelta ) void SpawnSphere::advanceTime( F32 timeDelta )
{ {
if ( isMounted() ) Parent::advanceTime( timeDelta );
{
MatrixF mat( true );
mMount.object->getRenderMountTransform( 0.f, mMount.node, mMount.xfm, &mat );
setTransform( mat );
}
} }
void SpawnSphere::initPersistFields() void SpawnSphere::initPersistFields()